/* css/pages/bookings.css — Bookings Page Styles */

/* Bookings Header */
.bookings-header {
    margin-bottom: 1.5rem;
}

.bookings-header .page-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bookings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.booking-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.booking-stat:hover {
    border-color: var(--sunset-orange);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sunset-orange);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls */
.bookings-controls {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--sunset-orange);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--sunset-orange);
}

.filter-tab.active {
    background: var(--sunset-orange);
    border-color: var(--sunset-orange);
    color: white;
}

/* Bookings List */
.bookings-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}

.booking-card:hover {
    border-color: var(--sunset-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.booking-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.booking-status {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-status.upcoming {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.booking-status.completed {
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
}

.booking-status.cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.booking-content {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.booking-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.booking-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-image-placeholder i {
    font-size: 2rem;
    color: var(--border-color);
}

.booking-details {
    flex: 1;
    min-width: 0;
}

.booking-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.booking-location i {
    color: var(--sunset-orange);
}

.booking-dates {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.booking-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.booking-date i {
    color: var(--text-muted);
}

.booking-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.booking-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.booking-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
}

.booking-action-btn {
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.booking-action-btn:hover {
    border-color: var(--sunset-orange);
    color: var(--sunset-orange);
}

.booking-action-btn.primary {
    background: var(--sunset-orange);
    border-color: var(--sunset-orange);
    color: white;
}

.booking-action-btn.primary:hover {
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.empty-illustration {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunset-orange), var(--ocean-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-illustration i {
    font-size: 3rem;
    color: white;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

/* Quick Book Section */
.quick-book-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.quick-book-section h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-book-section h3 i {
    color: var(--sunset-orange);
}

.quick-book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-book-card:hover {
    border-color: var(--sunset-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

.quick-book-card i {
    font-size: 1.75rem;
    color: var(--sunset-orange);
}

.quick-book-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Booking Modal */
.booking-modal {
    max-width: 500px;
}

.booking-details-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-detail-item:last-child {
    border-bottom: none;
}

.booking-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.booking-detail-value.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sunset-orange);
}

.booking-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
}

.timeline-item.completed .timeline-dot {
    background: #20c997;
}

.timeline-item.active .timeline-dot {
    background: var(--sunset-orange);
    animation: pulse 2s infinite;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ticket Preview */
.ticket-preview {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.ticket-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ticket-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ticket-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ticket-info-item {
    text-align: left;
}

.ticket-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.ticket-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ticket-qr {
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border-color);
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-placeholder i {
    font-size: 4rem;
    color: var(--text-primary);
}

.qr-placeholder span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cancellation */
.booking-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
}

.cancellation-policy {
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: var(--radius-md);
}

.cancellation-policy h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #ffc107;
}

.cancellation-policy p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Review Modal */
.rating-input {
    margin-bottom: 1.5rem;
}

.rating-input label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.star-rating i {
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating i:hover,
.star-rating i.fas {
    color: #ffc107;
}

/* Buttons */
.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Responsive */
@media (max-width: 768px) {
    .bookings-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .booking-content {
        flex-wrap: wrap;
    }

    .booking-image,
    .booking-image-placeholder {
        width: 80px;
        height: 80px;
    }

    .booking-meta {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.75rem;
    }

    .quick-book-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticket-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bookings-stats {
        grid-template-columns: 1fr;
    }

    .booking-content {
        padding: 1rem;
    }

    .booking-title {
        font-size: 1rem;
    }

    .booking-actions {
        flex-wrap: wrap;
    }

    .booking-action-btn {
        flex: 1;
        justify-content: center;
    }

    .quick-book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-book-card {
        padding: 1rem 0.75rem;
    }

    .quick-book-card i {
        font-size: 1.5rem;
    }

    .quick-book-card span {
        font-size: 0.8rem;
    }
}

/* ── Booking detail rows v7.1 ───────────────────────── */
.booking-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 0; border-bottom: 1px solid var(--border-subtle);
    font-size: .875rem;
}
.booking-detail-row span:first-child { color: var(--text-muted); }
.booking-detail-row:last-child { border-bottom: none; }
