/* RNS Confirmation Page Styles */

/* Base Confirmation Styles */
.confirmation-container {
    margin: 2rem auto;
    max-width: 1000px;
    padding: 2rem;
}

.confirmation-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.confirmation-header {
    margin-bottom: 32px;
    text-align: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.confirmation-number {
    color: var(--primary-color, #0056b3);
    font-size: 1.2rem;
    margin-top: 12px;
    color: #666;
    margin-top: 0.5rem;
}

.confirmation-details {
    margin: 32px 0;
}

.property-info,
.payment-info {
    margin-bottom: 24px;
}

.dates {
    color: var(--gray600);
    margin-top: 12px;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.confirmation-message {
    background-color: #f0fdf4; /* Light green background */
    border-radius: var(--radius-md);
    margin: 24px 0;
    padding: 20px;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #bbf7d0; /* Subtle green border */
}

.confirmation-message .success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirmation-message .success-header iconify-icon {
    color: #15803d; /* Dark green for check icon */
}

.confirmation-message .success-header h2 {
    color: #166534; /* Dark green for heading text */
    margin: 0;
}

.confirmation-actions {
    margin-top: 32px;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirmation-section {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.confirmation-section h2 {
    border-bottom: 1px solid #eee;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.property-specs {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.property-image img {
    height: 100%; /* Make the image fill the container height */
    object-fit: cover; /* Scale the image to cover the container */
    object-position: center; /* Adjust this to control which part of the image is shown */
    width: 100%; /* Make the image fill the container width */
}

.property-info {
    flex: 1;
}

.stay-row {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    white-space: nowrap; /* Prevent wrapping */
}

.stay-row:last-child {
    border-bottom: none;
}

.stay-label {
    align-items: center;
    color: #4a5568;
    display: flex;
    flex: 1;
    font-size: 0.95rem;
    gap: 0.5rem;
    min-width: 0; /* Allow text truncation */
}

.stay-label span {
    margin-left: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Print Styles */
@media print {
    /* Print-specific styles */
    @page {
        size: auto;
        margin: 20mm;
    }

    body {
        background: white !important;
    }

    .confirmation-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .confirmation-content {
        box-shadow: none !important;
    }

    .confirmation-actions,
    .navbar,
    .footer {
        display: none !important;
    }

    .confirmation-section {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        margin-bottom: 20px !important;
    }

    .confirmation-message {
        background-color: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }

    .alert-success {
        background-color: transparent !important;
        border: none !important;
        color: #000 !important;
    }

    .property-image img {
        max-width: 200px !important;
    }

    iconify-icon {
        display: none !important;
    }

    .stay-label span {
        margin-left: 0 !important;
    }
    
    /* Additional print enhancements */
    .print-timestamp {
        display: block !important;
    }
    
    .confirmation-number {
        font-size: 18px !important;
        font-weight: bold !important;
    }
    
    .property-name {
        font-size: 20px !important;
        font-weight: bold !important;
        margin-bottom: 10px !important;
    }
    
    .confirmation-section h2 {
        font-size: 16px !important;
        font-weight: bold !important;
        margin-bottom: 15px !important;
        border-bottom: 2px solid #333 !important;
        padding-bottom: 5px !important;
    }
    
    .stay-row {
        margin-bottom: 8px !important;
        padding: 5px 0 !important;
    }
    
    .stay-row strong {
        font-weight: bold !important;
    }
    
    /* Ensure proper page breaks */
    .confirmation-section:last-child {
        page-break-after: avoid;
    }
    
    /* Hide any remaining interactive elements */
    button, a, input, select, textarea {
        display: none !important;
    }
    
    /* Ensure text is readable */
    * {
        color: #000 !important;
        background: transparent !important;
    }
    
    .confirmation-message {
        background-color: #f8f9fa !important;
        border: 2px solid #333 !important;
    }
}
