/* --- ID 154: hivepress - mon compte (général) --- */
/**********************************************
 * HOMERENTAI — Compte HivePress (/account/*)
 * Sidebar + contenu modernes
 **********************************************/

/* Fond global un peu plus doux sur les pages compte (optionnel) */
body.page-template-default.page,
body.page-id-,
body.post-type-archive-hp_booking,
body.post-type-archive-hp_message {
  /* background: #f5f7fb;  // à activer si tu veux un fond gris clair */
}

/* --- Layout général du compte --- */
.hp-page__sidebar.site-sidebar {
  padding-top: 2rem;
}

.hp-page__content {
  padding-top: 2rem;
}

/* Carte de la sidebar (menu HivePress) */
.hp-page__sidebar .hp-menu--user-account > ul {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.06);
  padding: 1.4rem 0.9rem; /* carte élargie */
  margin: 0;
  list-style: none;
}

/* Items du menu */
.hp-menu--user-account .hp-menu__item {
  margin: 0 0 0.55rem 0 !important; /* espacement entre les lignes */
}

.hp-menu--user-account .hp-menu__item:last-child {
  margin-bottom: 0 !important;
}

.hp-menu--user-account .hp-menu__item > a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7a8895;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

/* Icônes éventuelles dans le menu */
.hp-menu--user-account .hp-menu__item > a i,
.hp-menu--user-account .hp-menu__item > a .hp-icon {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Flèche à droite — meilleure centrage vertical */
.hp-menu--user-account .hp-menu__item > a::before {
  margin-left: auto;
  transform: translateY(-1px); /* ajuste légèrement vers le haut */
}

/* Hover / focus (items non actifs) */
.hp-menu--user-account
  .hp-menu__item:not(.hp-menu__item--current):not(.current-menu-item)
  > a:hover {
  background: rgba(13, 180, 140, 0.06); /* vert léger */
  color: #1b2330;
}

/* Item actif (page courante) */
.hp-menu--user-account .hp-menu__item--current > a,
.hp-menu--user-account .current-menu-item > a {
  background: linear-gradient(135deg, #1fb586, #0ca6d4);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 150, 130, 0.35);
  transform: translateY(-1px);
}

/* Texte du sous-menu actif en blanc par défaut */
.hp-menu--user-account .hp-menu__item--current > a span,
.hp-menu--user-account .current-menu-item > a span {
  color: #ffffff !important;
}

/* Quand on survole l’item ACTIF :
   fond blanc + texte vert #19b08c (comme “Enregistrer les modifications”) */
.hp-menu--user-account .hp-menu__item--current > a:hover,
.hp-menu--user-account .current-menu-item > a:hover {
  background: #ffffff;
  color: #19b08c;
  box-shadow: 0 12px 26px rgba(25, 176, 140, 0.25);
}

.hp-menu--user-account .hp-menu__item--current > a:hover span,
.hp-menu--user-account .current-menu-item > a:hover span {
  color: #19b08c !important; /* #19b08c */
}

/* --- Carte principale de contenu (droite) --- */
.hp-page__content .hp-account,
.hp-page__content .hp-block,
.hp-page__content .hp-form,
.hp-page__content .hp-messages,
.hp-page__content .hp-bookings,
.hp-page__content .hp-vendor-dashboard,
.hp-page__content > .hp-row,
.hp-page__content > .hp-container {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.05);
  padding: 2.2rem 2.4rem;
}

/* Titre principal (Réglages, Bookings, Messages…) */
.hp-page__content .page__title,
.hp-page__content h1.entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1b2330;
  margin-bottom: 1.8rem;
}

/* Petite barre colorée sous le titre (accent HomerentAI) */
.hp-page__content .page__title::after,
.hp-page__content h1.entry-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #1fb586, #0ca6d4);
}

/* Sous-titres dans les sections du compte */
.hp-page__content h2,
.hp-page__content h3 {
  color: #202736;
  font-weight: 600;
}

/* --- Formulaires (Réglages, Messages, etc.) --- */
.hp-page__content .hp-form__field,
.hp-page__content .form-row {
  margin-bottom: 1rem;
}

.hp-page__content .hp-field,
.hp-page__content input[type="text"],
.hp-page__content input[type="email"],
.hp-page__content input[type="password"],
.hp-page__content textarea,
.hp-page__content select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dde3ee;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.hp-page__content .hp-field:focus,
.hp-page__content input:focus,
.hp-page__content textarea:focus,
.hp-page__content select:focus {
  outline: none;
  border-color: #19b08c;
  box-shadow: 0 0 0 3px rgba(25, 176, 140, 0.16);
  background: #fbfefe;
}

/* Labels de formulaire */
.hp-page__content .hp-form__label span,
.hp-page__content label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #707e92;
}

/* --- Champ image de profil : retirer le cadre derrière le bouton --- */
.hp-page__content .hp-form__field--image {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Le label devient un simple conteneur inline pour le bouton */
.hp-page__content .hp-form__field--image label {
  display: inline-block;
  width: auto;
}

/* Le bouton lui-même : on supprime tout cadre parasite hérité de .hp-field */
.hp-page__content .hp-form__field--image .button.hp-field {
  width: auto;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 2.5rem;
}

/* L’input file caché ne doit pas prendre de place */
.hp-page__content .hp-form__field--image .hp-field--file {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* =========================================================
   RÉGLAGES — Photo profil + actions en haut à droite
   ========================================================= */
.hp-form--user-update,
.hp-form--vendor-update{
  position: relative;
  padding-top: 64px; /* place pour les boutons actions */
  --hr-profile-size: 120px;
  --hr-profile-radius: 14px;
  overflow: visible;
}

@media (max-width: 768px){
  .hp-form--user-update,
  .hp-form--vendor-update{
    padding-top: 0;
  }
}

/* Actions (Voir profil / Supprimer) en haut à droite */
.hp-form--user-update .hp-form__actions,
.hp-form--vendor-update .hp-form__actions{
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 !important;
}

@media (max-width: 768px){
  .hp-form--user-update .hp-form__actions,
  .hp-form--vendor-update .hp-form__actions{
    position: static;
    margin-top: 14px !important;
    justify-content: center;
    width: 100%;
  }
}

/* Style des actions (même DA que Modifier annonce) */
body .hp-page__content .hp-form--user-update .hp-form__action,
body .hp-page__content .hp-form--vendor-update .hp-form__action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:var(--hr-radius, 18px);
  font-weight:600;
  font-size:14px;
  text-decoration:none !important;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

/* Voir profil = style "Masquer" */
body .hp-page__content .hp-form--user-update .hp-form__action--vendor-view,
body .hp-page__content .hp-form--vendor-update .hp-form__action--vendor-view{
  background:#fff;
  color:var(--hr-navy, #1d2850) !important;
  border-color:rgba(29,40,80,.18);
  box-shadow:0 10px 26px rgba(29,40,80,.08);
}

body .hp-page__content .hp-form--user-update .hp-form__action--vendor-view i,
body .hp-page__content .hp-form--vendor-update .hp-form__action--vendor-view i{
  color:rgba(29,40,80,.70);
}

body .hp-page__content .hp-form--user-update .hp-form__action--vendor-view:hover,
body .hp-page__content .hp-form--vendor-update .hp-form__action--vendor-view:hover{
  background:rgba(29,40,80,.06);
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(29,40,80,.12);
}

/* Supprimer = style "danger" */
body .hp-page__content .hp-form--user-update .hp-form__action--user-delete,
body .hp-page__content .hp-form--vendor-update .hp-form__action--user-delete{
  background:#fff;
  color:#ef4444 !important;
  border-color:#ef4444;
  box-shadow:0 10px 26px rgba(239,68,68,.18);
}

body .hp-page__content .hp-form--user-update .hp-form__action--user-delete i,
body .hp-page__content .hp-form--vendor-update .hp-form__action--user-delete i{
  color:inherit;
}

body .hp-page__content .hp-form--user-update .hp-form__action--user-delete:hover,
body .hp-page__content .hp-form--vendor-update .hp-form__action--user-delete:hover{
  background:#ef4444;
  color:#fff !important;
  border-color:#ef4444;
  transform:translateY(-1px);
  box-shadow:0 18px 44px rgba(239,68,68,.28);
}

body .hp-page__content .hp-form--user-update .hp-form__action--user-delete:hover i,
body .hp-page__content .hp-form--vendor-update .hp-form__action--user-delete:hover i{
  color:#fff;
}

/* Ordre : Voir profil à gauche, Supprimer à droite */
.hp-form--user-update .hp-form__action--vendor-view,
.hp-form--vendor-update .hp-form__action--vendor-view{ order: 1; }
.hp-form--user-update .hp-form__action--user-delete,
.hp-form--vendor-update .hp-form__action--user-delete{ order: 2; }

/* Photo de profil carrée + arrondie */
.hp-form--user-update .hp-form__field--image,
.hp-form--vendor-update .hp-form__field--image{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-form--user-update .hp-field--attachment-upload > div:first-child > div,
.hp-form--vendor-update .hp-field--attachment-upload > div:first-child > div{
  width: var(--hr-profile-size) !important;
  max-width: var(--hr-profile-size) !important;
  height: var(--hr-profile-size) !important;
  max-height: var(--hr-profile-size) !important;
}

.hp-form--user-update .hp-field--attachment-upload > div:first-child > div > div,
.hp-form--vendor-update .hp-field--attachment-upload > div:first-child > div > div{
  width: var(--hr-profile-size) !important;
  height: var(--hr-profile-size) !important;
  max-width: var(--hr-profile-size) !important;
  max-height: var(--hr-profile-size) !important;
  padding-top: 0 !important;
  aspect-ratio: 1 / 1;
  border-radius: var(--hr-profile-radius);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(148,163,184,.25);
}

.hp-form--user-update .hp-field--attachment-upload img,
.hp-form--vendor-update .hp-field--attachment-upload img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: var(--hr-profile-radius) !important;
  display: block;
}

/* Fallback fort si le rendu reste rectangulaire */
.hp-form--user-update .hp-field--attachment-upload > div:first-child img,
.hp-form--vendor-update .hp-field--attachment-upload > div:first-child img{
  width: var(--hr-profile-size) !important;
  height: var(--hr-profile-size) !important;
  max-width: var(--hr-profile-size) !important;
  max-height: var(--hr-profile-size) !important;
  object-fit: cover !important;
  border-radius: var(--hr-profile-radius) !important;
}

/* Fallback si le champ est en "attachment select" */
.hp-form--user-update .hp-field--attachment-select > div,
.hp-form--vendor-update .hp-field--attachment-select > div{
  width: var(--hr-profile-size) !important;
  height: var(--hr-profile-size) !important;
  max-width: var(--hr-profile-size) !important;
  max-height: var(--hr-profile-size) !important;
  aspect-ratio: 1 / 1;
  border-radius: var(--hr-profile-radius);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.25);
}

.hp-form--user-update .hp-field--attachment-select img,
.hp-form--vendor-update .hp-field--attachment-select img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: var(--hr-profile-radius) !important;
}

/* Bouton "Sélectionner une image" = style secondaire */
body .hp-page__content .hp-form--user-update .hp-form__field--image .button,
body .hp-page__content .hp-form--user-update .hp-form__field--image .hp-field__button,
body .hp-page__content .hp-form--user-update .hp-form__field--image label > button,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image .button,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image .hp-field__button,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image label > button{
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--hr-blue, #4C6FFF) !important;
  border: 1.5px solid var(--hr-blue, #4C6FFF) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease !important;
}

body .hp-page__content .hp-form--user-update .hp-form__field--image .button:hover,
body .hp-page__content .hp-form--user-update .hp-form__field--image .hp-field__button:hover,
body .hp-page__content .hp-form--user-update .hp-form__field--image label > button:hover,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image .button:hover,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image .hp-field__button:hover,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image label > button:hover{
  transform: translateY(-1px);
  background: rgba(76,111,255,.06) !important;
  box-shadow: 0 14px 36px rgba(76,111,255,.22) !important;
}

/* Glow fluide : rien ne doit couper l'ombre */
body .hp-page__content .hp-form--user-update .hp-form__field--image,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image,
body .hp-page__content .hp-form--user-update .hp-form__field--image label,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image label{
  overflow: visible !important;
}

body .hp-page__content .hp-form--user-update .hp-form__field--image .hp-field,
body .hp-page__content .hp-form--vendor-update .hp-form__field--image .hp-field{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* RÉGLAGES — "Ajouter un élément" (repeater) = même bouton secondaire */
body .hp-page__content .hp-form--user-update .hp-field--button.button,
body .hp-page__content .hp-form--user-update .hp-field--repeater > .hp-field--button.button,
body .hp-page__content .hp-form--vendor-update .hp-field--button.button,
body .hp-page__content .hp-form--vendor-update .hp-field--repeater > .hp-field--button.button{
  width: 100% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--hr-blue, #4C6FFF) !important;
  border: 1.5px solid var(--hr-blue, #4C6FFF) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease !important;
}

body .hp-page__content .hp-form--user-update .hp-field--button.button:hover,
body .hp-page__content .hp-form--user-update .hp-field--repeater > .hp-field--button.button:hover,
body .hp-page__content .hp-form--vendor-update .hp-field--button.button:hover,
body .hp-page__content .hp-form--vendor-update .hp-field--repeater > .hp-field--button.button:hover{
  transform: translateY(-1px);
  background: rgba(76,111,255,.06) !important;
  box-shadow: 0 14px 36px rgba(76,111,255,.22) !important;
}

/* --- Boutons primaires / secondaires dans l’espace compte --- */
.hp-page__content .button,
.hp-page__content .hp-form__button,
.hp-page__content .hp-field--submit,
.hp-page__content button[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #1fb586, #0ca6d4);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 177, 140, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.hp-page__content .button:hover,
.hp-page__content .hp-form__button:hover,
.hp-page__content .hp-field--submit:hover,
.hp-page__content button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 177, 140, 0.45);
}

/* Bouton “ghost” si certains sont déjà gris/secondaires */
.hp-page__content .button.alt {
  background: transparent;
  color: #19b08c;
  border: 1px solid rgba(25, 176, 140, 0.35);
  box-shadow: none;
}

.hp-page__content .button.alt:hover {
  background: rgba(25, 176, 140, 0.06);
}

/* --- Bouton Supprimer le compte : bouton rouge à part entière --- */
.hp-page__content .hp-form__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

/* le lien “Supprimer le compte” devient un vrai bouton rouge */
.hp-page__content .hp-form__action--user-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #ffe5e5;
  color: #c62828;
  border: 1px solid #f2bcbc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.hp-page__content .hp-form__action--user-delete i {
  font-size: 0.9rem;
}

.hp-page__content .hp-form__action--user-delete:hover {
  background: #ffd6d6;
  color: #b71c1c;
}

/* --- Tables (Bookings, Orders intégrées côté HivePress, etc.) --- */
.hp-page__content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.hp-page__content table th,
.hp-page__content table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.hp-page__content table thead th {
  background: #f5f7fb;
  font-weight: 600;
  color: #707e92;
}

.hp-page__content table tbody tr:nth-child(even) {
  background: #fafbff;
}

/* --- Messages / bookings listées en cartes --- */
.hp-page__content .hp-listing,
.hp-page__content .hp-message,
.hp-page__content .hp-booking {
  border-radius: 18px;
  border: 1px solid #e3e8f0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.hp-page__content .hp-listing:hover,
.hp-page__content .hp-message:hover,
.hp-page__content .hp-booking:hover {
  box-shadow: 0 12px 30px rgba(15, 35, 52, 0.09);
  transform: translateY(-2px);
}

/* --- Responsive : sur mobile, on allège la sidebar --- */
@media (max-width: 767px) {
  .hp-page__sidebar.site-sidebar {
    margin-bottom: 1.2rem;
  }

  .hp-page__sidebar .hp-menu--user-account > ul {
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 10px 26px rgba(15, 35, 52, 0.06);
  }

  .hp-menu--user-account .hp-menu__item > a {
    padding: 0.5rem 0.9rem;
  }

  .hp-page__content .hp-account,
  .hp-page__content .hp-block,
  .hp-page__content .hp-form,
  .hp-page__content .hp-messages,
  .hp-page__content .hp-bookings,
  .hp-page__content > .hp-row,
  .hp-page__content > .hp-container {
    padding: 1.5rem 1.4rem;
    border-radius: 20px;
  }
}

/**********************************************
 * Sidebar compte — nettoyage de l’ancien style
 **********************************************/

/* Supprimer le cadre “legacy” autour du widget
   et laisser seulement notre carte blanche arrondie */
.site-sidebar .hp-widget.widget_nav_menu.hp-menu--user-account {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Empêcher un éventuel border-right sur tous les widgets de la sidebar */
.site-sidebar .widget {
  border: none;
  box-shadow: none;
}




/**********************************************
 * FIX 1 — Retirer les flèches de la sidebar
 **********************************************/
.hp-menu--user-account .hp-menu__item > a::before {
  content: none !important;   /* plus de flèche */
}

/* Sidebar menu: garantir clic sur tous les items */
.hp-menu--user-account .hp-menu__item > a{
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.hp-menu--user-account .hp-menu__item > a::before,
.hp-menu--user-account .hp-menu__item > a::after{
  pointer-events: none;
}
.hp-menu--user-account .hp-menu__item small{
  pointer-events: none;
}

/**********************************************
 * FIX 2 — Champ "Sélectionner une image"
 *        suppression du gros encart blanc
 **********************************************/

/* On enlève le style de champ classique sur le wrapper upload */
.hp-page__content
  .hp-form__field--attachment-upload
  .hp-field.hp-field--attachment-upload {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Le label devient juste un conteneur autour du bouton */
.hp-page__content
  .hp-form__field--attachment-upload
  .hp-field--attachment-upload
  > label {
  display: inline-block;
  padding: 0;
  margin: 0;
}

/* Le bouton gradient garde son style mais sans cadre parasite */
.hp-page__content
  .hp-form__field--attachment-upload
  .hp-field--button.button {
  border: none !important;
  box-shadow: none !important; /* on garde celui du gradient global si tu veux */
  width: auto;
}

/* L’input file est caché proprement mais reste fonctionnel */
.hp-page__content
  .hp-form__field--attachment-upload
  .hp-field--file {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


/**********************************************
 * 1) Supprimer complètement les flèches
 *    du menu Compte (HivePress)
 **********************************************/
.hp-menu--user-account .hp-menu__item::before,
.hp-menu--user-account .hp-menu__item > a::before {
  content: none !important;
  width: 0;
  margin: 0;
}

/**********************************************
 * 2) Bouton "Sélectionner une image"
 *    – pas de découpe au survol
 **********************************************/

/* Le wrapper ne doit pas couper ce qui dépasse du bouton */
.hp-page__content .hp-form__field--attachment-upload,
.hp-page__content
  .hp-form__field--attachment-upload
  .hp-field.hp-field--attachment-upload {
  overflow: visible !important;
}

/* On neutralise le petit "saut" au hover pour ce bouton précis */
.hp-page__content
  .hp-form__field--attachment-upload
  .button.hp-field--button {
  transform: translateY(0) !important;
}

.hp-page__content
  .hp-form__field--attachment-upload
  .button.hp-field--button:hover {
  transform: translateY(0) !important;
  /* tu peux garder l’ombre douce si tu veux un léger feedback */
  box-shadow: 0 12px 28px rgba(15, 177, 140, 0.35);
}







/**********************************************
 * HOMERENTAI – Annonces & Messages
 * Modernisation : 1 card par ligne
 **********************************************/

/* ===== Conteneur table commun (Annonces + Messages) ===== */

.hp-page__content .hp-listings.hp-table,
.hp-page__content .hp-messages.hp-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 18px !important;        /* espace vertical entre les cards */
  background: transparent !important;
  border: none !important;
}

.hp-page__content .hp-listings.hp-table tbody,
.hp-page__content .hp-messages.hp-table tbody {
  background: transparent !important;
}

/* Chaque ligne devient une "card" */
.hp-page__content .hp-listings.hp-table tr.hp-listing,
.hp-page__content .hp-messages.hp-table tr.hp-message {
  background: #ffffff !important;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* Hover léger */
.hp-page__content .hp-listings.hp-table tr.hp-listing:hover,
.hp-page__content .hp-messages.hp-table tr.hp-message:hover {
  box-shadow: 0 22px 55px rgba(15, 35, 52, 0.12);
  transform: translateY(-1px);
}

/* Cellules : padding propre, plus de bordures */
.hp-page__content .hp-listings.hp-table td,
.hp-page__content .hp-messages.hp-table td {
  border: none !important;
  padding: 0.95rem 1.6rem;
  vertical-align: middle;
  font-size: 0.95rem;
  background: transparent; /* le fond est sur le <tr> */
}

/* Arrondis via les cellules de bord */
.hp-page__content .hp-listings.hp-table tr.hp-listing td:first-child,
.hp-page__content .hp-messages.hp-table tr.hp-message td:first-child {
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.hp-page__content .hp-listings.hp-table tr.hp-listing td:last-child,
.hp-page__content .hp-messages.hp-table tr.hp-message td:last-child {
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

/* ======= PAGE ANNONCES ======= */

/* Titre d’annonce : icône edit + texte alignés */
.hp-listings.hp-table .hp-listing__title a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #222a38;
  text-decoration: none;
}

.hp-listings.hp-table .hp-listing__title a .hp-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Type de bien : colonne compacte, sur une ligne */
.hp-listings.hp-table .hp-listing__categories {
  width: 1%;
  white-space: nowrap;
  color: #7a8895;
}

/* Date : compacte, alignée à droite */
.hp-listings.hp-table .hp-listing__date {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.hp-listings.hp-table .hp-listing__date time {
  font-size: 0.85rem;
  color: #9aa5b5;
}

/* Action (œil) à droite, sans rond moche */
.hp-listings.hp-table .hp-listing__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.hp-listings.hp-table .hp-listing__action {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.hp-listings.hp-table .hp-listing__action i {
  font-size: 1rem;
  color: #7a8895;
}

/* ======= PAGE MESSAGES ======= */

/* Expéditeur : colonne compacte, toujours sur une ligne */
.hp-messages.hp-table .hp-message__sender {
  width: 1%;
  white-space: nowrap;
}

.hp-messages.hp-table .hp-message__sender a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #222a38;
  text-decoration: none;
}

/* Icône enveloppe verte */
.hp-messages.hp-table .hp-message__sender i {
  font-size: 0.95rem;
  color: #19b08c;
}

/* Lien vers l’annonce au centre */
.hp-messages.hp-table .hp-message__listing a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #57627a;
  text-decoration: none;
}

.hp-messages.hp-table .hp-message__listing i {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Date parfaitement alignée à droite */
.hp-messages.hp-table .hp-message__date {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.hp-messages.hp-table .hp-message__date time {
  font-size: 0.85rem;
  color: #9aa5b5;
}

