/**
 * booking.css
 *
 * Styles specific to the nightly booking flow:
 *   book-now/index.php       — booking form
 *   book-now/summary.php     — review / cost breakdown page
 *   book-now/success.php     — confirmation page
 *
 * Depends on variables and base styles defined in style.css.
 */

/* =============================================================
   BOOKING REVIEW LAYOUT (summary.php)
   Two-column: trip/cost details on left, payment action on right
   ============================================================= */

.booking-review-layout {
    display: grid;
    grid-template-columns: 1fr 22.5rem;
    gap: var(--spacing-xl);
    align-items: start;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 56.25rem) {
    .booking-review-layout {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   REVIEW CARDS  — shared panel style used on summary.php
   ============================================================= */

.review-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-card h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* =============================================================
   TRIP / GUEST DETAIL ROWS
   ============================================================= */

.review-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    font-size: 0.95rem;
}

.review-detail-row:last-child {
    border-bottom: none;
}

.review-detail-label {
    color: var(--text-medium);
    font-weight: 500;
}

.review-detail-value {
    font-weight: 600;
    text-align: right;
}

/* =============================================================
   COST BREAKDOWN TABLE
   ============================================================= */

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    font-size: 0.95rem;
}

.cost-row:last-of-type {
    border-bottom: none;
}

.cost-row-label {
    color: var(--text-dark);
}

.cost-row-amount {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    padding-left: 1rem;
}

/* Section sub-headings within the cost table e.g. "Fees", "Taxes" */
.cost-section-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    margin: 0.75rem 0 0.25rem;
}

/* Divider before grand total row */
.cost-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 0.5rem 0;
}

/* Grand total row */
.cost-row-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.625rem 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Note below the deposit line */
.deposit-note {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-style: italic;
    margin: 0.25rem 0 0;
}

/* =============================================================
   PAYMENT ACTION SIDEBAR
   ============================================================= */

.payment-action-card {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    position: sticky;
    top: 6rem;
    text-align: center;
}

.payment-action-card h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    border-bottom: none;
}

.payment-action-card .total-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0;
}

.payment-action-card .total-due {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.25rem 0 var(--spacing-md);
}

.payment-action-card .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.payment-secure-note {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin: var(--spacing-sm) 0 0;
}

/* =============================================================
   BOOKING CONFIRMATION PAGE (success.php)
   ============================================================= */

.booking-confirmed-container {
    max-width: 50rem;
    margin: 0 auto;
}

.booking-confirmed-icon {
    font-size: 3.5rem;
    color: var(--success-color, #28a745);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.booking-confirmation-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.btn-group .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-group .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}
