/**
 * ESTILOS PARA MIS RESERVAS
 * 
 * Este archivo contiene los estilos para la visualización de las reservas del usuario,
 * utilizando tarjetas verticales con información completa de cada reserva,
 * estados visuales, fechas y opciones de gestión.
 */

/* ==========================================
   SECCIÓN DE MIS RESERVAS
   ========================================== */

/* Contenedor principal de la sección de mis reservas */
.my-reservations {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: 50vh;
}

.my-reservations .container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
}

.reservations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Estado vacío */
.reservations-list .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reservations-list .empty-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.reservations-list .empty-state h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.reservations-list .empty-state p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.reservations-list .empty-state .btn-suites {
    margin-top: 1.5rem;
    text-decoration: none;
    background: #b89a7e !important;
    color: white !important;
    border: 1px solid #b89a7e;
}

.reservations-list .empty-state .btn-suites:hover {
    background: #b89a7e !important;
    color: white !important;
    transform: none !important;
}

.reservations-list .empty-state button {
    margin-bottom: 1rem;
}

/* Tarjeta vertical */
.reservation-card-vertical {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reservation-card-vertical:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen superior */
.reservation-image-top {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.reservation-image-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reservation-card-vertical:hover .reservation-image-top img {
    transform: scale(1.1);
}

.status-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-pending {
    color: #f39c12;
}

.status-confirmed {
    color: #27ae60;
}

.status-active {
    color: #b89a7e;
}

.status-cancelled {
    color: #b89a7e;
}

/* Contenido vertical */
.reservation-content-vertical {
    padding: 1.5rem;
}

.room-name-vertical {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.room-type-badge {
    display: inline-block;
    background: #b89a7e;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Fecha de reserva */
.booking-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #b89a7e;
}

.booking-date-info i {
    color: #b89a7e;
    font-size: 1.1rem;
}

.booking-date-info span {
    font-size: 0.85rem;
    color: #2c3e50;
}

.booking-date-info strong {
    color: #b89a7e;
}

/* Sección de fechas */
.dates-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.date-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-box i {
    color: #b89a7e;
    font-size: 1.2rem;
}

.date-box div {
    display: flex;
    flex-direction: column;
}

.date-box small {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
}

.date-box strong {
    font-size: 0.9rem;
    color: #2c3e50;
}

.nights-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #b89a7e;
    font-weight: 600;
    font-size: 0.85rem;
}

.nights-indicator i {
    font-size: 1.2rem;
}

/* Info de huéspedes */
.guests-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.guests-info i {
    color: #b89a7e;
}

/* Caja de precio */
.price-box {
    background: linear-gradient(135deg, #b89a7e, #8b7355);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.price-detail {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.price-total {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Mensaje informativo sobre modificaciones y cancelaciones */
.reservation-info-message {
    background: linear-gradient(135deg, #fff8f0, #ffeee0);
    border: 2px solid #b89a7e;
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    text-align: center;
}

.reservation-info-message i.fa-info-circle {
    color: #b89a7e;
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.reservation-info-message p {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.reservation-info-message .contact-details {
    color: #b89a7e;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reservation-info-message .contact-details i {
    color: #b89a7e;
    margin: 0 0.2rem;
}

/* Mensaje de contacto con el hotel */
.contact-hotel-notice {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    border: 2px solid #b89a7e;
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-hotel-notice > i {
    color: #b89a7e;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-hotel-notice .notice-content {
    flex: 1;
}

.contact-hotel-notice strong {
    display: block;
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.contact-hotel-notice p {
    color: #555;
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.5;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-options a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b89a7e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.3;
}

.contact-options a i {
    font-size: 1rem;
    color: #b89a7e;
}

/* Botones de acción - Diseño mejorado */
.reservation-actions-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.reservation-actions-vertical .btn-outline,
.reservation-actions-vertical .btn-danger {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #b89a7e;
}

.reservation-actions-vertical .btn-outline {
    background: #b89a7e;
    color: white;
    border-color: #b89a7e;
}

.reservation-actions-vertical .btn-outline:hover {
    background: #a08568;
    border-color: #a08568;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 154, 126, 0.4);
}

.reservation-actions-vertical .btn-danger {
    background: white;
    color: #e74c3c;
    border-color: #e74c3c;
}

.reservation-actions-vertical .btn-danger:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.reservation-actions-vertical i {
    font-size: 1rem;
}

/* Botones alternativos (por compatibilidad) */
.action-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-modify,
.btn-delete {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modify {
    background: #b89a7e;
    color: white;
}

.btn-modify:hover {
    background: #a08568;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 154, 126, 0.4);
}

.btn-delete {
    background: white;
    color: #b89a7e;
    border: 2px solid #b89a7e;
}

.btn-delete:hover {
    background: #b89a7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 154, 126, 0.4);
}

/* Estilos para reservas canceladas */
.cancelled-reservation {
    opacity: 0.7;
    position: relative;
}

.cancelled-reservation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.cancelled-reservation .reservation-content-vertical {
    position: relative;
    z-index: 2;
}

.cancelled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.cancelled-reservation .reservation-image-top img {
    filter: grayscale(100%);
}

.cancelled-price {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
}

.cancellation-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.cancellation-notice i {
    font-size: 1.2rem;
}

.cancellation-notice span {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .reservations-list {
        grid-template-columns: 1fr;
    }
    
    .dates-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .date-box {
        width: 100%;
    }
    
    .reservation-actions-vertical {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .cancelled-overlay {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .contact-hotel-notice {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .contact-hotel-notice > i {
        font-size: 1.3rem;
    }
    
    .contact-hotel-notice strong {
        font-size: 0.95rem;
    }
    
    .contact-hotel-notice p {
        font-size: 0.85rem;
    }
    
    .contact-options a {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .reservation-info-message {
        padding: 1rem;
    }
    
    .reservation-info-message i.fa-info-circle {
        font-size: 1.5rem;
    }
    
    .reservation-info-message p {
        font-size: 0.85rem;
    }
    
    .reservation-info-message .contact-details {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

