/**
 * Styles pour la liste des réservations
 * 
 * Ce fichier contient tous les styles pour la page de liste des réservations,
 * inspirés de l'interface d'Airbnb.
 */

/* Styles généraux */
.awayout-reservations-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
    color: #333;
}

.awayout-reservations-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #222;
}

.awayout-reservations-section-title {
    font-size: 14px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: #666;
}

.awayout-reservations-empty {
    text-align: center;
    padding: 50px 0;
    background-color: #f8f8f8;
    border-radius: 12px;
    margin: 30px 0;
}

.awayout-reservations-login-required {
    text-align: center;
    padding: 50px 0;
    background-color: #f8f8f8;
    border-radius: 12px;
    margin: 30px 0;
}

/* Liste des réservations */
.awayout-reservations-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Carte de réservation */
.awayout-reservation-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awayout-reservation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.awayout-reservation-card:hover .awayout-reservation-image {
    transform: scale(1.02);
}

.awayout-reservation-card.past {
    opacity: 0.8;
}

/* Image de la propriété */
.awayout-reservation-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.awayout-reservation-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #F97C5B;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.awayout-reservation-badge.past {
    background-color: #6e6e6e;
}

/* Contenu de la réservation */
.awayout-reservation-content {
    padding: 15px;
}

.awayout-reservation-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px;
}

.awayout-reservation-title a {
    color: #222;
    text-decoration: none;
}

.awayout-reservation-title a:hover {
    color: #F97C5B;
}

.awayout-reservation-address {
    font-size: 13px;
    color: #717171;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dates de la réservation */
.awayout-reservation-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.awayout-reservation-date {
    flex: 1;
}

.awayout-date-label {
    font-size: 12px;
    color: #717171;
    margin-bottom: 5px;
}

.awayout-date-value {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Détails de la réservation */
.awayout-reservation-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    color: #717171;
}

/* Actions */
.awayout-reservation-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.awayout-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex: 1;
}

.awayout-button.primary {
    background-color: #F97C5B;
    color: white;
    border: 1px solid #F97C5B;
}

.awayout-button.primary:hover {
    background-color: #F97C5B;
}

.awayout-button.secondary {
    background-color: white;
    color: #222;
    border: 1px solid #ddd;
}

.awayout-button.secondary:hover {
    background-color: #f7f7f7;
}

/* Responsive */
@media (max-width: 992px) {
    .awayout-reservations-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .awayout-reservations-list {
        grid-template-columns: 1fr;
    }
    
    .awayout-reservation-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .awayout-reservation-dates {
        flex-direction: column;
    }
    
    .awayout-reservation-date {
        margin-bottom: 10px;
    }
}
