/* --- ID 159: hivepress - bookings --- */
/*******************************
 * SUPPRIMER LE GROS BLOC DE FOND
 *******************************/
.hp-bookings.hp-grid.hp-block {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/********************************
 * TITRES DE CATÉGORIES
 ********************************/
.hp-bookings__section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.2rem 0 1rem;
    color: #1b2330;
}

.hp-bookings__section-title::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Vert = réservations où TU ES CLIENT */
.hp-bookings__section-title.section-guest::before {
    background: #1fb586;
}

/* Bleu = réservations où TU ES PROPRIÉTAIRE */
.hp-bookings__section-title.section-host::before {
    background: #0ca6d4;
}

/********************************
 * STYLE DES CARTES SELON RÔLE
 ********************************/

/* Tu es voyageur → trace vert */
.booking--as-guest .hp-listing {
    border-left: 4px solid #1fb586 !important;
}

/* Tu es propriétaire → trace bleu */
.booking--as-host .hp-listing {
    border-left: 4px solid #0ca6d4 !important;
}

/* Garder le style moderne des cartes */
.hp-booking.hp-listing {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 35, 52, 0.05);
}

/* Réservations: éloigner la ligne de séparation des badges de statut */
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__content {
    padding-bottom: 14px !important;
}

body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__footer {
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__content {
        padding-bottom: 16px !important;
    }

    /* Fallback: variante "table" des réservations (statut -> date) */
    body .hp-page__content .hp-bookings.hp-table td.hp-booking__status,
    body .hp-page__content .hp-bookings.hp-table td.hp-listing__status {
        padding-bottom: 12px !important;
    }

    body .hp-page__content .hp-bookings.hp-table td.hp-booking__dates,
    body .hp-page__content .hp-bookings.hp-table td.hp-listing__created-date {
        padding-top: 14px !important;
    }
}

/* Réservations: actions de carte (message / commande) */
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__actions--primary {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--message,
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--order {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid #d7deef !important;
    background: #f7f9ff !important;
    color: #2f3d5f !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--message > i,
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--order > i {
    margin: 0 !important;
    line-height: 1 !important;
}

body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--message > span,
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--order > span {
    display: none !important;
}

body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--message:hover,
body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__action--order:hover {
    background: #eef3ff !important;
    border-color: #c8d2ea !important;
    color: #1f2c49 !important;
}

@media (max-width: 768px) {
    body .hp-page__content .hp-bookings .hp-booking.hp-listing--view-block .hp-listing__actions--primary {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

