/* --- ID 372: woocommerce - fiche produit (related en liste + sans images) --- */
/* Fiche produit: masquer le bloc image pour un rendu "liste" */
body.single-product .woocommerce-product-gallery,
body.single-product div.product div.images{
  display:none !important;
}

/* Résumé produit en pleine largeur */
body.single-product div.product div.summary{
  float:none !important;
  width:100% !important;
  max-width:100% !important;
}

/* Articles similaires / upsells / cross-sells en liste */
body.single-product .related.products ul.products,
body.single-product .up-sells ul.products,
body.single-product .cross-sells ul.products{
  list-style:none;
  margin:0;
  padding:12px 0;
  display:flex !important;
  flex-direction:column;
  gap:10px;
}

body.single-product .related.products ul.products li.product,
body.single-product .up-sells ul.products li.product,
body.single-product .cross-sells ul.products li.product{
  position:relative !important;
  float:none !important;
  width:100% !important;
  margin:0 !important;
  padding:12px 12px !important;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.28);
  background:#fff;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

/* Retire le cadre image */
body.single-product .related.products ul.products li.product img,
body.single-product .related.products ul.products li.product .woocommerce-placeholder,
body.single-product .up-sells ul.products li.product img,
body.single-product .up-sells ul.products li.product .woocommerce-placeholder,
body.single-product .cross-sells ul.products li.product img,
body.single-product .cross-sells ul.products li.product .woocommerce-placeholder{
  display:none !important;
}

/* Zone texte */
body.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link,
body.single-product .up-sells ul.products li.product a.woocommerce-LoopProduct-link,
body.single-product .cross-sells ul.products li.product a.woocommerce-LoopProduct-link{
  display:block !important;
  flex:1 1 auto;
  min-width:0;
  text-decoration:none;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .up-sells ul.products li.product .woocommerce-loop-product__title,
body.single-product .cross-sells ul.products li.product .woocommerce-loop-product__title{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:15px;
  font-weight:750;
  color:#1D2850;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

body.single-product .related.products ul.products li.product .price,
body.single-product .up-sells ul.products li.product .price,
body.single-product .cross-sells ul.products li.product .price{
  display:block !important;
  margin:4px 0 0 !important;
  font-size:13px;
  color:rgba(31,42,68,.72);
}

/* Bouton à droite */
body.single-product .related.products ul.products li.product a.button,
body.single-product .up-sells ul.products li.product a.button,
body.single-product .cross-sells ul.products li.product a.button{
  position:static !important;
  float:none !important;
  flex:0 0 auto;
  border-radius:12px;
  padding:10px 14px;
  min-height:38px;
  font-size:13px;
  line-height:1.1;
  background:var(--hr-blue) !important;
  border:1px solid var(--hr-blue) !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(15,23,42,.12);
  white-space:nowrap;
}

@media (max-width:520px){
  body.single-product .related.products ul.products li.product,
  body.single-product .up-sells ul.products li.product,
  body.single-product .cross-sells ul.products li.product{
    flex-direction:column;
    align-items:stretch;
  }
  body.single-product .related.products ul.products li.product a.button,
  body.single-product .up-sells ul.products li.product a.button,
  body.single-product .cross-sells ul.products li.product a.button{
    width:100%;
  }
}

/* =========================================================
   BOUTIQUE PRO (page /boutique-pro/) — applique le même layout
   que l’archive produit Woo
   ========================================================= */
body.hr-boutique-pro .site-content .container{
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
body.hr-boutique-pro .content-area{
  width: 100% !important;
  float: none !important;
}
body.hr-boutique-pro main.col-sm-8.col-xs-12.col-sm-offset-2{
  width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
  max-width: 1200px;
}
body.hr-boutique-pro .hr-proshop-sections{
  display: grid;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 28px;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 900px){
  body.hr-boutique-pro .hr-proshop-sections{
    grid-template-columns: 1fr;
  }
}
body.hr-boutique-pro .hr-proshop-section{
  border: 1px solid var(--hr-border);
  border-radius: 18px;
  background: var(--hr-card);
  box-shadow: var(--hr-shadow);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}
body.hr-boutique-pro .hr-proshop-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  background: var(--hr-soft);
  border-bottom: 1px solid var(--hr-border);
}
body.hr-boutique-pro .hr-proshop-section__title{
  margin:0;
  font-size:15px;
  font-weight:800;
  color:#1D2850;
  line-height:1.2;
}
body.hr-boutique-pro .hr-proshop-section__count{
  font-size:12px;
  color: rgba(31,42,68,.65);
  white-space:nowrap;
}
body.hr-boutique-pro .hr-proshop-section ul.products{
  list-style:none;
  margin:0;
  padding:12px;
  display:grid !important;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 900px){
  body.hr-boutique-pro .hr-proshop-section ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product{
  position: relative !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 12px 12px !important;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.28);
  background:#fff;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  overflow:hidden;
  min-width:0;
}
/* Keep "Voir le panier" from breaking the row */
body.hr-boutique-pro .hr-proshop-section ul.products li.product{
  display:grid !important;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "info action"
    "cart cart";
  align-items:center;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.woocommerce-LoopProduct-link{
  grid-area: info;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.button.add_to_cart_button{
  grid-area: action;
  justify-self:end;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.added_to_cart{
  grid-area: cart;
  justify-self:end;
  margin-top:6px;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.added_to_cart::after{
  display:none !important;
}

/* Header cart icon */
.hr-cart-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.hr-cart-wrap{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  margin-right:18px;
}
.header-navbar__menu .menu.wrap{
  display:flex;
  align-items:center;
  gap:18px;
}
/* Group spacing */
.header-navbar__menu .menu.wrap li.menu-item--user-account{
  margin-left: 18px;
}
.header-navbar__menu .menu.wrap .hr-cart-wrap{
  margin-left: 6px;
  margin-right: 12px;
}
.header-navbar__actions{
  display:flex;
  align-items:center;
}

/* Cart dropdown placement */
.hr-cart-wrap{
  position:relative;
}
.hr-cart-dropdown{
  right:0;
  top:calc(100% + 8px);
  min-width:260px;
  padding:14px;
}
.hr-cart-title{
  font-weight:700;
  font-size:14px;
  margin-bottom:10px;
}
.hr-cart-items .woocommerce-mini-cart{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hr-cart-items .woocommerce-mini-cart-item img{
  display:none !important;
}
.hr-cart-items .woocommerce-mini-cart-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(148,163,184,.2);
}
.hr-cart-items .woocommerce-mini-cart-item:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.hr-cart-items .woocommerce-mini-cart-item .remove{
  display:inline-flex !important;
  width:18px;
  height:18px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  color:#1d2850;
  text-decoration:none;
  font-size:12px;
}
.hr-cart-items .woocommerce-mini-cart-item a{
  text-decoration:none;
  color:#1f2a44;
  font-weight:600;
  font-size:13px;
  line-height:1.3;
}
.hr-cart-items .woocommerce-mini-cart-item .quantity{
  color:#6b778c;
  font-size:12px;
  white-space:nowrap;
}
.hr-cart-items .woocommerce-mini-cart__total{
  margin-top:10px;
  font-weight:700;
  display:flex;
  justify-content:space-between;
  font-size:13px;
}
.hr-cart-items .woocommerce-mini-cart__buttons{
  display:none;
}
.hr-cart-footer{
  margin-top:10px;
}
.hr-cart-view-btn{
  display:block;
  text-align:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff !important;
  color:var(--hr-blue) !important;
  border:1.5px solid var(--hr-blue);
  text-decoration:none;
  font-weight:600;
  transition:background .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease;
}
.hr-cart-view-btn:hover{
  background:rgba(76,111,255,.06) !important;
  color:var(--hr-blue) !important;
  box-shadow:0 14px 36px rgba(76,111,255,.22);
  transform:translateY(-1px);
}

/* Global accent override (yellow -> blue) */
:root{
  --hp-primary-color: var(--hr-blue);
  --hp-accent-color: var(--hr-blue);
  --hp-color-primary: var(--hr-blue);
  --hp-color-accent: var(--hr-blue);
}

/* Unify accent colors (remove yellow accents) */
.hp-menu--tabbed .hp-menu__item--current::before{
  background: var(--hr-blue) !important;
}
.hp-menu--tabbed .hp-menu__item--current a{
  color: var(--hr-blue) !important;
}
.header-navbar__actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
}
.hr-cart-link .hr-cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#4C6FFF;
  color:#fff;
  font-size:11px;
  line-height:18px;
  text-align:center;
  font-weight:700;
}
.hr-cart-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:260px;
  background:#fff;
  color:#1f2a44;
  border-radius:14px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  padding:12px;
  z-index:9999;
  display:none;
}
.hr-cart-wrap.is-open .hr-cart-dropdown{
  display:block;
}
.hr-cart-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.hr-cart-actions a{
  flex:1;
  text-align:center;
  padding:8px 10px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
}
.hr-cart-actions a.hr-cart-view{
  background:#4C6FFF;
  color:#fff;
}
.hr-cart-actions a.hr-cart-empty{
  background:#eef2ff;
  color:#1d2850;
}

/* Pagination spacing (avoid overlap with cards) */
body.hr-boutique-pro nav.woocommerce-pagination{
  margin-top: 24px;
  padding-top: 8px;
  clear: both;
  position: relative;
  z-index: 1;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product img,
body.hr-boutique-pro .hr-proshop-section ul.products li.product .woocommerce-placeholder{
  display:none !important;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.woocommerce-LoopProduct-link{
  display:block !important;
  flex: 1 1 auto;
  min-width:0;
  text-decoration:none;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product .woocommerce-loop-product__title{
  display:block !important;
  margin:0 !important;
  font-size:14px;
  font-weight:700;
  color:#1D2850;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product .price{
  font-size:13px;
  color:#4C6FFF;
  font-weight:700;
  margin-top:4px;
}
body.hr-boutique-pro .hr-proshop-section ul.products li.product a.button.add_to_cart_button{
  white-space:nowrap;
  border-radius:999px !important;
  padding:8px 14px !important;
}

/* Show only categorized layout when ready */
body.hr-boutique-pro.hr-proshop-ready ul.products{
  display:none !important;
}
body.hr-boutique-pro.hr-proshop-ready .hr-proshop-sections{
  display:grid !important;
}
/* Ensure sections are visible when built (even if ready class missing) */
body.hr-boutique-pro .hr-proshop-sections{
  display:grid !important;
}
/* === Hotfixes: hover shift + consistent card images + blue accent === */
:root{
  --hra-blue: #3f63ff;
  --hra-blue-dark: #2d47e6;
}

/* Prevent hover "jump" on key buttons */
.hp-form--listing-search .hp-form__button,
.header-navbar__actions .hp-menu__item.button--secondary,
.hr-ai-bar .hr-ai-submit.button,
.hr-ai-toggle {
  transform: none !important;
}
.hp-form--listing-search .hp-form__button:hover,
.hp-form--listing-search .hp-form__button:active,
.header-navbar__actions .hp-menu__item.button--secondary:hover,
.header-navbar__actions .hp-menu__item.button--secondary:active,
.hr-ai-bar .hr-ai-submit.button:hover,
.hr-ai-bar .hr-ai-submit.button:active,
.hr-ai-toggle:hover,
.hr-ai-toggle:active {
  transform: none !important;
}

/* Consistent card image sizing on home/listings */
.hp-listing--view-block .hp-listing__image,
.hp-listings .hp-listing__image,
.hp-listings.hp-grid .hp-grid__item .hp-listing__image {
  height: 220px;
  overflow: hidden;
}
.hp-listing--view-block .hp-listing__image img,
.hp-listings .hp-listing__image img,
.hp-listings.hp-grid .hp-grid__item .hp-listing__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Force blue accent colors (buttons + icons) */
.hp-form__button.button-primary,
.hp-form__button.button-primary.alt,
.hp-field--submit.button-primary,
.hp-field--submit.button-primary.alt,
.button.button--primary,
.button.button-primary,
.button.button-primary.alt,
.hp-header__button .button,
.header-navbar__actions .hp-menu__item.button--secondary {
  background: linear-gradient(135deg, var(--hra-blue), var(--hra-blue-dark)) !important;
}
.hp-form__button.button-primary:hover,
.hp-form__button.button-primary.alt:hover,
.hp-field--submit.button-primary:hover,
.hp-field--submit.button-primary.alt:hover,
.button.button--primary:hover,
.button.button-primary:hover,
.button.button-primary.alt:hover,
.hp-header__button .button:hover,
.header-navbar__actions .hp-menu__item.button--secondary:hover {
  background: linear-gradient(135deg, var(--hra-blue-dark), var(--hra-blue)) !important;
}

.hp-listing__location .hp-icon,
.hp-listing__location i,
.hp-listing__location svg {
  color: var(--hra-blue) !important;
  fill: var(--hra-blue) !important;
}

/* === Premium layout hard fixes (strong overrides) === */
/* Prevent any hover jump on key CTAs */
.hp-form--listing-search .hp-form__button,
.header-navbar__actions .hp-menu__item.button--secondary,
.hr-ai-bar .hr-ai-submit.button,
.hr-ai-toggle,
.hr-ai-close,
.hp-header__button .button,
.button.button-primary,
.button.button--primary,
.hp-form__button.button-primary,
.hp-form__button.button-primary.alt {
  transform: none !important;
  top: auto !important;
  margin-top: 0 !important;
}
.hp-form--listing-search .hp-form__button:hover,
.header-navbar__actions .hp-menu__item.button--secondary:hover,
.hr-ai-bar .hr-ai-submit.button:hover,
.hr-ai-toggle:hover,
.hr-ai-close:hover,
.hp-header__button .button:hover,
.button.button-primary:hover,
.button.button--primary:hover,
.hp-form__button.button-primary:hover,
.hp-form__button.button-primary.alt:hover,
.hp-form--listing-search .hp-form__button:active,
.header-navbar__actions .hp-menu__item.button--secondary:active,
.hr-ai-bar .hr-ai-submit.button:active,
.hr-ai-toggle:active,
.hr-ai-close:active,
.hp-header__button .button:active,
.button.button-primary:active,
.button.button--primary:active,
.hp-form__button.button-primary:active,
.hp-form__button.button-primary.alt:active {
  transform: none !important;
}

/* ===============================
   SINGLE LISTING — HARD RESET FLOW
   (force full page display)
   =============================== */
body.single-hp_listing,
body.single-hp_listing .site,
body.single-hp_listing .site-content,
body.single-hp_listing .site-content .hp-page,
body.single-hp_listing .site-content .hp-page .hp-row.hp-listing.hp-listing--view-page,
body.single-hp_listing .hp-page__content,
body.single-hp_listing .hp-page__sidebar{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}

/* Fallback slider (si Slick absent) */
body.single-hp_listing .hp-listing__images .hr-simple-prev,
body.single-hp_listing .hp-listing__images .hr-simple-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:0;
  background:rgba(15,23,42,.7);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:5;
}
body.single-hp_listing .hp-listing__images .hr-simple-prev{ left:12px; }
body.single-hp_listing .hp-listing__images .hr-simple-next{ right:12px; }

/* Uniform card images on home & listings (force) */
.hp-listings .hp-listing--view-block .hp-listing__image,
.hp-listings .hp-listing__image,
.hp-listings.hp-grid .hp-grid__item .hp-listing__image,
.hp-listings.hp-grid .hp-row .hp-grid__item .hp-listing__image {
  height: 220px !important;
  overflow: hidden !important;
  background: #f2f4f8 !important;
}
.hp-listings .hp-listing__image > a,
.hp-listings .hp-listing--view-block .hp-listing__image > a,
.hp-listings.hp-grid .hp-grid__item .hp-listing__image > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.hp-listings .hp-listing--view-block .hp-listing__image img,
.hp-listings .hp-listing__image img,
.hp-listings.hp-grid .hp-grid__item .hp-listing__image img,
.hp-listings.hp-grid .hp-row .hp-grid__item .hp-listing__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Cartes "Annonces similaires" : radius propre et cohérent */
body.single-hp_listing .hp-page__footer .hp-listing--view-block{
  border-radius:32px !important;
  overflow:hidden !important;
  background:#fff;
  padding:0 !important;
}
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__image{
  border-radius:22px 22px 0 0 !important;
  overflow:hidden !important;
  margin:0 !important;
}
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__image > a{
  display:block !important;
  width:100% !important;
  height:100% !important;
}
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__header{
  margin:0 !important;
  padding:0 !important;
}
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__content,
body.single-hp_listing .hp-page__footer .hp-listing--view-block .hp-listing__footer{
  padding:16px 18px 18px !important;
}

/* Override "annonces similaires" compact styles to match home radius */
body.single-hp_listing .hp-page__footer .hp-section .hp-listing.hp-listing--view-block{
  border-radius:32px !important;
  overflow:hidden !important;
}
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__header{
  margin:0 !important;
}
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__image{
  height:200px !important;
  border-radius:32px 32px 0 0 !important;
  overflow:hidden !important;
  margin:0 !important;
}
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__image,
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__image > a,
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__image img{
  border-radius:32px 32px 0 0 !important;
}

/* Tabs Détails/Bookings/Modifier : style uniforme + accents DA */
.hp-menu--listing-manage .hp-menu__item--current::before{
  background:var(--hr-primary) !important;
}
.hp-menu--listing-manage .hp-menu__item::before{
  height:3px !important;
  border-radius:2px !important;
}
.hp-menu--listing-manage .hp-menu__item::after{
  height:3px !important;
  border-radius:2px !important;
  display:none !important;
}
.hp-menu--listing-manage .hp-menu__item--current::before{
  height:3px !important;
}
.hp-menu--listing-manage .hp-menu__item--current::before,
.hp-menu--listing-manage .hp-menu__item::before{
  display:none !important;
}
.hp-menu--listing-manage{
  position:relative;
}
.hp-menu--listing-manage::after{
  display:none !important;
}
.hp-menu--listing-manage a{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
}
.hp-menu--listing-manage a:hover{
  color:var(--hr-primary) !important;
}
.hp-menu--listing-manage .hp-menu__item--current a{
  color:var(--hr-primary) !important;
  font-weight:600;
}
.hp-menu--listing-manage a .hp-icon{
  color:inherit !important;
  margin-right:0 !important;
}
.hp-menu--listing-manage .hp-menu__item--current a .hp-icon{
  color:var(--hr-primary) !important;
}

/* Boutons Masquer / Supprimer annonce visibles dans la DA */
.hp-listing__action--delete,
.hp-listing__action--hide,
.hp-listing__action--unhide{
  border:1px solid var(--hr-primary) !important;
  color:var(--hr-primary) !important;
  background:#fff !important;
  border-radius:999px !important;
  padding:8px 14px !important;
}
.hp-listing__action--delete:hover,
.hp-listing__action--hide:hover,
.hp-listing__action--unhide:hover{
  background:var(--hr-primary) !important;
  color:#fff !important;
}

/* =========================
   Tabs manage: only color for active
   ========================= */
.hp-menu--tabbed.hp-menu--listing-manage .hp-menu__item--current::before,
.hp-menu--tabbed.hp-menu--listing-manage .hp-menu__item--current::after,
.hp-menu--listing-manage .hp-menu__item--current::before,
.hp-menu--listing-manage .hp-menu__item--current::after{
  display:none !important;
}
.hp-menu--listing-manage .hp-menu__item::before,
.hp-menu--listing-manage a{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#667085 !important;
}
.hp-menu--listing-manage a .hp-icon{
  color:inherit !important;
  margin:0 !important;
}
.hp-menu--listing-manage .hp-menu__item--current a{
  color:var(--hr-primary) !important;
}

/* =========================
   Booking Pending pill: remove blue bar + set DA color
   ========================= */
.hp-listing__status,
.hp-booking__status,
.hp-status{
  background:transparent !important;
  box-shadow:none !important;
}
.hp-listing__status--pending,
.hp-booking__status--pending,
.hp-status--pending{
  border-color:rgba(76,111,255,.35) !important;
  color:var(--hr-primary) !important;
  background:rgba(76,111,255,.08) !important;
}
.hp-listing__status--pending span,
.hp-booking__status--pending span,
.hp-status--pending span{
  color:var(--hr-primary) !important;
}
/* remove any highlight bar behind the status */
.hp-booking__details,
.hp-booking__summary,
.hp-booking__header,
.hp-booking__content{
  background:transparent !important;
}

/* =========================
   Delete button visibility (text always visible)
   ========================= */
.hp-listing__action--delete,
.hp-listing__action--delete *{
  color:#ef4444 !important;
}
.hp-listing__action--delete:hover,
.hp-listing__action--delete:hover *{
  color:#fff !important;
}

/* Delete button via JS marker */
.hr-delete-action{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  border:1px solid #ef4444 !important;
  color:#ef4444 !important;
  background:#fff !important;
  border-radius:999px !important;
  padding:8px 14px !important;
}
.hr-delete-action:hover{
  background:#ef4444 !important;
  color:#fff !important;
}
.hp-booking__status,
.hp-booking__details{
  box-shadow:none !important;
}

/* Ensure delete action is visible even if link styles override */
a.hp-listing__action--delete{
  border-color:#ef4444 !important;
  color:#ef4444 !important;
}
a.hp-listing__action--delete:hover{
  background:#ef4444 !important;
  color:#fff !important;
}

/* Mini aperçu des photos (bas du slider) */
body.single-hp_listing .hp-listing__images{
  position:relative;
}
body.single-hp_listing .hp-listing__images-carousel{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  width:min(720px, calc(100% - 96px));
  max-width:calc(100% - 24px);
  opacity:.62;
  z-index:7;
}
body.single-hp_listing .hp-listing__images-carousel .slick-list{
  overflow:hidden !important;
}
body.single-hp_listing .hp-listing__images-carousel:hover{
  opacity:1;
}
body.single-hp_listing .hp-listing__images-carousel .slick-slide{
  margin:0 4px !important;
}
body.single-hp_listing .hp-listing__images-carousel img{
  height:54px !important;
  border-radius:10px !important;
  object-fit:cover !important;
}
body.single-hp_listing .hp-listing__images.hr-thumbs-static .hp-listing__images-carousel .slick-track{
  left:0 !important;
  transform:translate3d(0px, 0px, 0px) !important;
  display:flex !important;
  justify-content:center !important;
}

@media (max-width: 768px){
  body.single-hp_listing .hp-listing__images-carousel{
    width:calc(100% - 36px);
    bottom:10px;
  }
}

/* Réduire l’espace vide entre header site et contenu sur la page annonce */
body.single-hp_listing .hp-page{
  padding-top:12px !important;
}
body.single-hp_listing .hp-page__header{
  margin-bottom:16px !important;
}

/* Safety layout lock: single listing desktop columns must stay stable */
@media (min-width: 1025px){
  body.single-hp_listing .hp-row.hp-listing--view-page{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  body.single-hp_listing .hp-row.hp-listing--view-page > .hp-page__content{
    order: 1 !important;
    width: 68% !important;
    max-width: 68% !important;
    flex: 0 0 68% !important;
  }

  body.single-hp_listing .hp-row.hp-listing--view-page > .hp-page__sidebar{
    order: 2 !important;
    width: 32% !important;
    max-width: 32% !important;
    flex: 0 0 32% !important;
    position: sticky !important;
    top: var(--hr-sticky-top, 110px) !important;
    align-self: flex-start !important;
    z-index: 3 !important;
    overflow: visible !important;
    height: fit-content !important;
    max-height: none !important;
  }

  body.single-hp_listing .hp-row.hp-listing--view-page > .hp-page__sidebar .inner-wrapper-sticky{
    position: sticky !important;
    top: var(--hr-sticky-top, 110px) !important;
    align-self: flex-start !important;
    overflow: visible !important;
    height: fit-content !important;
    max-height: none !important;
  }

  body.single-hp_listing .site-container,
  body.single-hp_listing .site,
  body.single-hp_listing .site-content,
  body.single-hp_listing .site-content .container,
  body.single-hp_listing .content-area,
  body.single-hp_listing .hp-page,
  body.single-hp_listing .hp-page > .hp-row{
    overflow: visible !important;
  }
}

/* Menu Détails/Modifier/Booking */
body.single-hp_listing .hp-menu--listing-manage a .hp-icon{
  margin-right:6px;
}
body.single-hp_listing .hp-menu--listing-manage a .hr-booking-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  margin-left:8px;
  padding:0 6px;
  font-size:11px;
  font-weight:600;
  border-radius:999px;
  background:var(--hr-primary);
  color:#fff;
  line-height:1;
}
body.single-hp_listing .hp-page__footer .hp-section .hp-listing__image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}

/* =========================
   Tabs manage (global)
   ========================= */
.hp-menu--listing-manage{
  border-bottom:0 !important;
}
.hp-menu--listing-manage .hp-menu__item::before,
.hp-menu--listing-manage .hp-menu__item::after,
.hp-menu--listing-manage .hp-menu__item--current::before,
.hp-menu--listing-manage a{
  color:#667085 !important;
  font-weight:500;
}

/* Accent bar above titles (booking/edit) -> blue */
.hp-page__title::before{
  background:var(--hr-primary) !important;
}

/* Booking status (pending) */
.hp-booking__status,
.hp-booking__status--pending,

/* Delete button visibility */
.hp-listing__action--delete{
  display:inline-flex !important;
  opacity:1 !important;
  border-color:#ef4444 !important;
  color:#ef4444 !important;
}
.hp-listing__action--delete:hover{
  background:#ef4444 !important;
  color:#fff !important;
}

/* =========================
   Listing sidebar spacing + accents
   ========================= */
body.single-hp_listing .hp-vendor.hp-vendor--view-block,
body.single-hp_listing .hp-sidebar-booking,
body.single-hp_listing .hp-listing__actions--primary{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
body.single-hp_listing .hp-vendor.hp-vendor--view-block + .hp-sidebar-booking{
  margin-top:16px !important;
}
body.single-hp_listing .hp-sidebar-booking + .hp-listing__actions--primary{
  margin-top:16px !important;
}

/* Neutraliser accents jaunes sur actions secondaires (avis / signaler) */
body.single-hp_listing .hp-listing__action--review,
body.single-hp_listing .hp-listing__action--report{
  color:var(--hr-text) !important;
}
body.single-hp_listing .hp-listing__action--review:hover,
body.single-hp_listing .hp-listing__action--review:focus,
body.single-hp_listing .hp-listing__action--report:hover,
body.single-hp_listing .hp-listing__action--report:focus{
  color:var(--hr-primary) !important;
}
body.single-hp_listing .hp-listing__action--review:hover .hp-icon,
body.single-hp_listing .hp-listing__action--review:focus .hp-icon,
body.single-hp_listing .hp-listing__action--report:hover .hp-icon,
body.single-hp_listing .hp-listing__action--report:focus .hp-icon{
  color:var(--hr-primary) !important;
}

/* Spinner / loader couleur DA */
body .hp-spinner,
body .hp-loading,
body .hp-loader{
  color:var(--hr-primary) !important;
  border-top-color:var(--hr-primary) !important;
  border-right-color:var(--hr-primary) !important;
}
body .woocommerce .blockUI.blockOverlay:before,
body .woocommerce .loader:before{
  border-top-color:var(--hr-primary) !important;
}

/* =========================================================
   FINAL OVERRIDES — listing manage tabs + booking pending UI
   ========================================================= */
body .hp-menu--listing-manage.hp-menu--tabbed{
  border-bottom-width:0 !important;
}
body .hp-menu--listing-manage .hp-menu__item--current::before,
body .hp-menu--listing-manage .hp-menu__item--current::after,
body .hp-menu--listing-manage .hp-menu__item::before,
body .hp-menu--listing-manage .hp-menu__item::after{
  content:none !important;
  display:none !important;
}
body .hp-menu--listing-manage .hp-menu__item > a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  color:#7a889a !important;
  font-weight:600 !important;
}
body .hr-listing-manage-tabs .hp-menu__item > a{
  color:#7a889a !important;
  font-weight:600 !important;
}
body .hp-menu--listing-manage .hp-menu__item > a .hp-icon{
  color:inherit !important;
  margin:0 !important;
}
body .hr-listing-manage-tabs .hp-menu__item > a .hp-icon{
  color:inherit !important;
}
body .hp-menu--listing-manage .hp-menu__item--current > a,
body .hp-menu--listing-manage .current-menu-item > a,
body .hp-menu--listing-manage .current_page_item > a,
body .hp-menu--listing-manage .hp-menu__item.is-active > a,
body .hp-menu--listing-manage .hp-menu__item.active > a,
body .hp-menu--listing-manage .hp-menu__item.hr-tab-active > a,
body .hp-menu--listing-manage .hp-menu__item > a[aria-current="page"],
body .hp-menu--listing-manage .hp-menu__item > a[aria-current="true"],
body .hp-menu--listing-manage .hp-menu__item > a.is-active,
body .hr-listing-manage-tabs .hp-menu__item--current > a,
body .hr-listing-manage-tabs .current-menu-item > a,
body .hr-listing-manage-tabs .current_page_item > a,
body .hr-listing-manage-tabs .hp-menu__item.is-active > a,
body .hr-listing-manage-tabs .hp-menu__item.active > a,
body .hr-listing-manage-tabs .hp-menu__item.hr-tab-active > a,
body .hr-listing-manage-tabs .hp-menu__item > a[aria-current="page"],
body .hr-listing-manage-tabs .hp-menu__item > a[aria-current="true"],
body .hr-listing-manage-tabs .hp-menu__item > a.is-active,
body .hp-menu--listing-manage .hp-menu__item > a.hr-tab-active-link{
  color:var(--hr-blue, var(--hr-primary)) !important;
  font-weight:600 !important;
}
body .hr-listing-manage-tabs .hp-menu__item > a.hr-tab-active-link{
  color:var(--hr-blue, var(--hr-primary)) !important;
  font-weight:600 !important;
}

/* Accent bar above title should be blue (not yellow) */
body .hp-page__title::before,
body .page-title::before{
  background:var(--hr-primary) !important;
  display:block !important;
}

/* Booking listing link: remove blue highlight bar */
body .hp-page__content .hp-booking.hp-booking--view-page .hp-booking__listing{
  background:transparent !important;
  padding:0 !important;
  border-radius:0 !important;
}

/* Pending badge: back to yellow (no extra halo) */
body .hp-status--pending,
body .hp-booking__status--pending,
body .hp-listing__status.hp-status--pending{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
body .hp-status--pending span,
body .hp-booking__status--pending span,
body .hp-listing__status.hp-status--pending span{
  display:inline-flex !important;
  align-items:center !important;
  padding:4px 10px !important;
  border-radius:999px !important;
  background:#fef3c7 !important;
  border:1px solid #f59e0b !important;
  color:#92400e !important;
}

/* Restore default HivePress pending style (no fill) */
body .hp-status--pending span,
body .hp-booking__status--pending span,
body .hp-listing__status.hp-status--pending span{
  background: transparent !important;
  border-color: #ffcb00 !important;
  color: #ffcb00 !important;
  border-radius: 6px !important;
}

/* Standardiser tous les statuts (pending/canceled/validé/etc.) */
body .hp-status span,
body .hp-booking__status span,
body .hp-listing__status span{
  border-radius: 6px !important;
}

body .hp-status,
body .hp-booking__status,
body .hp-listing__status{
  border-radius: 6px !important;
}

/* Status colors (cancel/approved/paid/etc.) */
body .hp-status--cancelled span,
body .hp-status--canceled span,
body .hp-booking__status--cancelled span,
body .hp-booking__status--canceled span,
body .hp-listing__status--cancelled span,
body .hp-listing__status--canceled span{
  background:#fee2e2 !important;
  border:1px solid #ef4444 !important;
  color:#b91c1c !important;
}
body .hp-status--approved span,
body .hp-status--confirmed span,
body .hp-status--paid span,
body .hp-booking__status--approved span,
body .hp-booking__status--confirmed span,
body .hp-booking__status--paid span,
body .hp-listing__status--approved span,
body .hp-listing__status--confirmed span,
body .hp-listing__status--paid span{
  background:#dcfce7 !important;
  border:1px solid #22c55e !important;
  color:#166534 !important;
}
body .hp-status--declined span,
body .hp-status--rejected span,
body .hp-booking__status--declined span,
body .hp-booking__status--rejected span,
body .hp-listing__status--declined span,
body .hp-listing__status--rejected span{
  background:#fee2e2 !important;
  border:1px solid #f97316 !important;
  color:#9a3412 !important;
}

/* Remove any residual highlight bars in booking cards */
body .hp-booking__details,
body .hp-booking__details--primary,
body .hp-booking__summary,
body .hp-booking__header,
body .hp-booking__content{
  background:transparent !important;
}
body .hp-booking__details::before,
body .hp-booking__details::after{
  display:none !important;
}

/* =========================================================
   Listing-link icon (bookings/messages) — unified & centered
   ========================================================= */
body .hp-page__content .hr-link-icon{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:8px !important;
  border:1px solid rgba(148,163,184,.35) !important;
  background:#fff !important;
  color:#4c6fff !important;
  line-height:0 !important;
  padding:0 !important;
  box-shadow:0 6px 14px rgba(15,23,42,.08) !important;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease !important;
  position:relative !important;
  flex:0 0 24px !important;
  vertical-align:middle !important;
  align-self:center !important;
}
body .hp-page__content .hr-link-icon::after{
  content:none !important;
}
body .hp-page__content .hr-link-icon svg{
  width:14px !important;
  height:14px !important;
  display:block !important;
  fill:currentColor !important;
  stroke:currentColor !important;
}
body .hp-page__content a[href*="/listing/"]:hover .hr-link-icon,
body .hp-page__content a[href*="/hp_listing/"]:hover .hr-link-icon{
  background:#eef2ff !important;
  border-color:#c7d2fe !important;
  color:#4c6fff !important;
  box-shadow:0 12px 24px rgba(76,111,255,.18) !important;
  transform:translateY(-1px);
}

/* Ensure link rows align icon + text */
body .hp-page__content .hp-booking__listing a,
body .hp-page__content .hp-message__listing a,
body .hp-page__content .hp-message__subject a{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}

/* Search bar: category select2 must look like the other plain fields (no inner pill) */
.hp-form--listing-search .hp-form__field--select .select2-container{
  width:100% !important;
}
.hp-form--listing-search .hp-form__field--select .select2-container--default .select2-selection--single{
  height:44px !important;
  min-height:44px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
}
.hp-form--listing-search .hp-form__field--select .select2-container--default.select2-container--focus .select2-selection--single{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.hp-form--listing-search .hp-form__field--select .select2-container--default .select2-selection--single .select2-selection__rendered{
  height:auto !important;
  line-height:1.2 !important;
  display:block !important;
  padding:0 24px 0 0 !important;
  font-weight:500 !important;
  color:#111827 !important;
}
.hp-form--listing-search .hp-form__field--select .select2-container--default .select2-selection--single .select2-selection__arrow{
  top:50% !important;
  right:0 !important;
  width:18px !important;
  height:18px !important;
  transform:translateY(-50%) !important;
}
.hp-form--listing-search .hp-form__field--select .select2-container--default .select2-selection--single .select2-selection__arrow b{
  margin-top:-1px !important;
}

/* =========================================================
   Global Dropdowns (Select + Select2) — DA moderne
   ========================================================= */
body select,
body .hp-form select,
body .hp-field--select select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  border:1px solid rgba(148,163,184,.35);
  border-radius:14px;
  background-color:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
  padding:10px 38px 10px 12px;
  font-weight:600;
  color:#0f172a;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:14px 14px;
}
body select:focus,
body .hp-form select:focus,
body .hp-field--select select:focus{
  border-color:rgba(76,111,255,.55);
  box-shadow:0 16px 34px rgba(76,111,255,.18);
  outline:none;
}

/* Search bar: revert select appearance to match other fields */
.hp-form--listing-search select{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  font-weight:500 !important;
  color:#111827 !important;
  padding-right:18px !important;
  background-image:none !important;
  line-height:1.2 !important;
}

/* Select2 single */
body .select2-container--default .select2-selection--single{
  height:44px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.35);
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
  display:flex;
  align-items:center;
}
body .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:44px;
  padding-left:14px;
  padding-right:44px;
  font-weight:600;
  color:#0f172a;
}
body .select2-container--default .select2-selection--single .select2-selection__arrow{
  height:44px;
  width:40px;
  right:6px;
  top:50%;
  transform:translateY(-50%);
}
body .select2-container--default .select2-selection--single .select2-selection__arrow b{
  border-color:#6b7280 transparent transparent transparent;
  border-width:6px 5px 0 5px;
  margin-left:-5px;
  margin-top:-2px;
}
body .select2-container--default.select2-container--focus .select2-selection--single{
  border-color:rgba(76,111,255,.55);
  box-shadow:0 16px 34px rgba(76,111,255,.18);
}

/* Select2 dropdown */
body .select2-container--open{ z-index: 999999 !important; }
body .select2-dropdown{
  border-radius:16px;
  border:1px solid rgba(148,163,184,.35);
  overflow:hidden;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  padding:6px;
}
body .select2-results__option{
  border-radius:12px;
  padding:10px 12px;
  font-weight:600;
}
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
  background:rgba(76,111,255,.12);
  color:#0f172a;
}
body .select2-container--default .select2-results__option--selected{
  background:rgba(76,111,255,.18);
  color:#0f172a;
}

/* Delete button: text always visible */
body a.hp-listing__action--delete,
body button.hp-listing__action--delete,
body .hr-delete-action{
  color:#ef4444 !important;
  border-color:#ef4444 !important;
  background:#fff !important;
}
body a.hp-listing__action--delete span,
body button.hp-listing__action--delete span,
body .hr-delete-action span,
body a.hp-listing__action--delete i,
body button.hp-listing__action--delete i,
body .hr-delete-action i{
  color:inherit !important;
}
body a.hp-listing__action--delete:hover,
body button.hp-listing__action--delete:hover,
body .hr-delete-action:hover{
  background:#ef4444 !important;
  color:#fff !important;
}
body a.hp-listing__action--delete:hover span,
body button.hp-listing__action--delete:hover span,
body .hr-delete-action:hover span,
body a.hp-listing__action--delete:hover i,
body button.hp-listing__action--delete:hover i,
body .hr-delete-action:hover i{
  color:#fff !important;
}

