/* --- ID 257: hivepress - détail réservations --- */
/************************************
 * HOMERENTAI — BOOKING VIEW (clean)
 ************************************/

:root{
  --hr-primary-from:#1d2850;
  --hr-primary-to:#4C6FFF;
  --hr-secondary:#4C6FFF;

  --hr-danger:#ef4444;
  --hr-danger-weak:#fff5f5;

  --hr-pill:999px;
  --hr-col:360px;

  --hr-glow-primary:0 18px 45px rgba(76,111,255,.45);
  --hr-glow-primary-hover:0 26px 60px rgba(76,111,255,.62);

  --hr-glow-secondary:0 14px 38px rgba(76,111,255,.30);
  --hr-glow-secondary-hover:0 18px 40px rgba(76,111,255,.38);

  --hr-glow-danger:0 10px 30px rgba(239,68,68,.18);
  --hr-glow-danger-hover:0 18px 42px rgba(239,68,68,.32);
}

/* =========================
   Layout card (desktop)
   ========================= */
@media (min-width:992px){
  .site-content .hp-page .hp-row:has(.hp-booking.hp-booking--view-page){
    background:#fff;
    border-radius:28px;
    box-shadow:0 26px 70px rgba(15,23,42,.08);
    padding:2.2rem 2.6rem;
    display:flex;
    gap:40px;
    align-items:flex-start;
  }
}

/* left column reset */
.hp-page__content.hp-col-sm-8.hp-col-xs-12.hp-listing.hp-booking.hp-booking--view-page{
  flex:2 1 0;
  padding:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  margin:0 !important;
}

/* right column reset */
.hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar{
  flex:1 1 0;
  padding:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  margin:0 !important;
}

/* kill sticky wrapper */
.hp-page__sidebar .inner-wrapper-sticky{
  position:static !important;
  transform:none !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
}

/* remove inner “card” */
.hp-page__sidebar .hp-booking__sidebar.hp-booking.hp-booking--view-page{
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  min-height:0 !important;
}

/* =========================
   Left content typography
   ========================= */
.hp-page__content .hp-booking.hp-booking--view-page{
  background:transparent;
  box-shadow:none;
  padding:0;
  margin:0;
}

.hp-page__content .hp-booking.hp-booking--view-page .hp-listing__title,
.hp-page__content .hp-booking.hp-booking--view-page h1.hp-listing__title{
  font-size:2.4rem;
  margin-bottom:1.1rem;
}

.hp-page__content .hp-booking.hp-booking--view-page .hp-listing__details--primary{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem 1.5rem;
}

.hp-page__content .hp-booking.hp-booking--view-page .hp-booking__listing{
  padding:.35rem .9rem;
  border-radius:999px;
  background:#f3f4ff;
  color:#111827;
  font-weight:500;
}

.hp-page__content .hp-booking.hp-booking--view-page .hp-booking__details--primary{
  display:grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(260px, 1fr);
  align-items:center;
  gap:16px 28px;
  text-align:left;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-col--left{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  min-width:0;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-top-row{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  min-width:0;
  flex-wrap:wrap;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-title-group{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-width:0;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-top-row .hp-booking__listing{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-col--right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-col--right .hp-booking__dates{
  text-align:right;
}
.hp-page__content .hp-booking.hp-booking--view-page .hr-booking-col--right .hp-booking__dates .hr-booking-dates-title{
  margin-bottom:4px;
}

.hp-page__content .hp-booking.hp-booking--view-page .hp-listing__status.hp-status{
  margin-left:auto;
}

/* Booking detail: smooth title cut */
body .hp-page__content .hp-booking.hp-booking--view-page .hp-booking__listing a{
  display:inline-block;
  position:relative;
  max-width:520px;
  overflow:hidden;
  white-space:nowrap;
  padding-right:32px;
}
body .hp-page__content .hp-booking.hp-booking--view-page .hp-booking__listing a::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:36px;
  height:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0), #fff 70%);
  pointer-events:none;
}

@media (max-width: 992px){
  .hp-page__content .hp-booking.hp-booking--view-page .hp-booking__details--primary{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .hp-page__content .hp-booking.hp-booking--view-page .hr-booking-col--right{
    align-items:flex-start;
  }
}

/* =========================
   Sidebar column alignment
   ========================= */
.hp-page__sidebar .hp-booking__sidebar{
  width:100%;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:1rem !important;
}

/* kill widget chrome */
.hp-page__sidebar .hp-booking__sidebar .hp-widget.widget{
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* price+dates & actions same column width */
.hp-page__sidebar .hp-booking__sidebar .hp-listing__attributes--primary,
.hp-page__sidebar .hp-booking__sidebar .hp-listing__actions--primary{
  width:100% !important;
  max-width:var(--hr-col) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
  align-items:center !important;
}

/* =========================
   Price + dates
   ========================= */
.hp-page__sidebar .hp-booking__sidebar .hp-booking__price,
.hp-page__sidebar .hp-booking__sidebar .hp-booking__dates{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
}

.hp-booking__price .woocommerce-Price-amount{
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  padding:.55rem 1.4rem !important;
  min-width:150px !important;
  border-radius:var(--hr-pill) !important;
  background:#fff !important;
  border:1px solid rgba(226,232,240,.9) !important;
  box-shadow:0 18px 40px rgba(15,23,42,.12) !important;
  font-size:1.25rem !important;
  font-weight:600 !important;
  color:#0f172a !important;
  margin:0 auto !important;
}

.hp-booking__dates{
  margin-top:.15rem !important;
  margin-bottom:.15rem !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:6px !important;
}

.hp-booking__dates span{
  display:block;
  font-size:.95rem;
  font-weight:500;
  color:#6b7280;
}

.hp-booking__dates .hr-booking-dates-title{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#94a3b8;
  font-weight:600;
}

/* Booking view page: align date label + message button */
body .hp-booking.hp-booking--view-page{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
body .hp-booking.hp-booking--view-page .hp-booking__actions,
body .hp-booking.hp-booking--view-page .hp-listing__actions--primary{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}
body .hp-booking.hp-booking--view-page .hp-booking__dates{
  margin-left:auto;
  text-align:center;
}
@media (max-width: 768px){
  body .hp-booking.hp-booking--view-page{
    flex-direction:column;
    align-items:stretch;
  }
  body .hp-booking.hp-booking--view-page .hp-booking__actions,
  body .hp-booking.hp-booking--view-page .hp-listing__actions--primary{
    width:100%;
    margin-left:0;
  }
}

/* =========================
   Actions stack
   ========================= */
.hp-page__sidebar .hp-booking__sidebar .hp-listing__actions--primary{
  display:flex !important;
  flex-direction:column !important;
  gap:.55rem !important;
  margin-top:.15rem !important;
}

/* Base button geometry (all actions) */
.hp-page__sidebar .hp-booking__sidebar :is(button.hp-listing__action, a.hp-listing__action){
  width:100% !important;
  max-width:var(--hr-col) !important;
  min-height:56px !important;
  padding:.9rem 2.4rem !important;
  border-radius:var(--hr-pill) !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.45rem !important;

  text-decoration:none !important;
  line-height:1 !important;

  background-image:none !important;
  -webkit-filter:none !important;
  filter:none !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    filter .18s ease;
}

/* Order: accept/message first, decline/cancel last */
.hp-booking__sidebar .hp-listing__action--accept{ order:10 !important; }
.hp-booking__sidebar .hp-listing__action--pay{ order:15 !important; }
.hp-booking__sidebar .hp-listing__action--message{ order:20 !important; }
.hp-booking__sidebar .hp-listing__action--decline{ order:90 !important; }
.hp-booking__sidebar .hp-listing__action--cancel{ order:100 !important; }

/* =========================
   PRIMARY — Pay Now (gradient ALWAYS)
   ========================= */
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt{
  background:linear-gradient(135deg,var(--hr-primary-from),var(--hr-primary-to)) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:var(--hr-glow-primary) !important;
}

/* hover: keep same gradient, only brighten */
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt:hover,
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt:focus,
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt:active{
  background:linear-gradient(135deg,var(--hr-primary-from),var(--hr-primary-to)) !important;
  color:#fff !important;
  border:none !important;
  filter:brightness(1.06) saturate(1.02) !important;
  transform:translateY(-1px) !important;
  box-shadow:var(--hr-glow-primary-hover) !important;
}

/* if theme adds overlays */
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt::before,
.hp-booking__sidebar button.hp-listing__action.hp-listing__action--pay.button.button--large.button--primary.alt::after{
  content:none !important;
  display:none !important;
}

/* =========================
   SECONDARY — Message / Accept (flat #4C6FFF)
   ========================= */
.hp-booking__sidebar :is(button.hp-listing__action--message, button.hp-listing__action--accept){
  background:var(--hr-secondary) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:var(--hr-glow-secondary) !important;
}

.hp-booking__sidebar :is(button.hp-listing__action--message, button.hp-listing__action--accept):hover,
.hp-booking__sidebar :is(button.hp-listing__action--message, button.hp-listing__action--accept):focus,
.hp-booking__sidebar :is(button.hp-listing__action--message, button.hp-listing__action--accept):active{
  background:#fff !important;
  color:var(--hr-secondary) !important;
  border:1px solid rgba(76,111,255,.35) !important;
  transform:translateY(-1px) !important;
  box-shadow:var(--hr-glow-secondary-hover) !important;
}

/* =========================
   DANGER — Cancel / Decline
   ========================= */
.hp-booking__sidebar :is(a.hp-listing__action--cancel, a.hp-listing__action--decline){
  background:var(--hr-danger-weak) !important;
  color:var(--hr-danger) !important;
  border:1px solid rgba(239,68,68,.30) !important;
  box-shadow:var(--hr-glow-danger) !important;
}

.hp-booking__sidebar :is(a.hp-listing__action--cancel, a.hp-listing__action--decline):hover{
  background:var(--hr-danger) !important;
  color:#fff !important;
  border-color:var(--hr-danger) !important;
  transform:translateY(-1px) !important;
  box-shadow:var(--hr-glow-danger-hover) !important;
}

.hp-booking__sidebar :is(a.hp-listing__action--cancel, a.hp-listing__action--decline) .hp-icon{
  color:currentColor !important;
  opacity:1 !important;
}

/* =========================
   Mobile
   ========================= */
@media (max-width:768px){
  .site-content .hp-page .hp-row:has(.hp-booking.hp-booking--view-page){
    display:block;
    background:transparent;
    box-shadow:none;
    padding:0;
  }

  .hp-page__content.hp-col-sm-8.hp-col-xs-12.hp-listing.hp-booking.hp-booking--view-page,
  .hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar{
    padding:0 1rem !important;
  }

  .hp-booking__price .woocommerce-Price-amount{ min-width:0 !important; }
}




/************************************
 * BOOKING SIDEBAR — Date au dessus + prix sans double capsule
 ************************************/

/* Le bloc attributs ne doit plus avoir de "capsule" autour */
.hp-page__sidebar .hp-booking__sidebar .hp-listing__attributes--primary{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* 1) Date au-dessus du prix */
.hp-page__sidebar .hp-booking__sidebar .hp-booking__dates{ order: 1 !important; }
.hp-page__sidebar .hp-booking__sidebar .hp-booking__price{ order: 2 !important; }

/* Date centrée (et avec un peu d’air) */
.hp-page__sidebar .hp-booking__sidebar .hp-booking__dates{
  justify-content: center !important;
  margin: 0 0 .45rem 0 !important;
}

/* 2) Prix : on garde UNE seule pastille (celle du montant) */
.hp-page__sidebar .hp-booking__sidebar .hp-booking__price{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* La pastille unique = uniquement sur le montant */
.hp-page__sidebar .hp-booking__sidebar .hp-booking__price .woocommerce-Price-amount{
  margin: 0 auto !important;
}

