/* Modern Bookings Page - Schwarz-Gold Design */

/* Override Framework7's page-content rules for bookings page */
.page[data-name="bookings"] .page-content {
    background: #ffffff !important;
    color: #333333 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

/* Remove any conflicting styles from bookings-page */
.bookings-page {
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    padding: 0;
    position: relative;
    width: 100%;
}

/* Filter Navigation - now the main sticky element */
.bookings-filter {
    margin-top: 9vh !important;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #000000;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid #333;
    color: #999;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.filter-btn:hover {
    border-color: #c8a165;
    color: #c8a165;
}

.filter-btn.active {
    background: #c8a165;
    border-color: #c8a165;
    color: #000000;
}

.filter-btn i {
    font-size: 1.1em;
}

/* Loading State */
.bookings-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 50vh;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #c8a165;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bookings-loading p {
    color: #666666;
    font-size: 1em;
}

/* Empty State */
.bookings-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
}

.empty-content {
    text-align: center;
    max-width: 400px;
}

.empty-content i {
    font-size: 4em;
    color: #c8a165;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-content h3 {
    color: #333333;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-content p {
    color: #666666;
    font-size: 1em;
    margin-bottom: 30px;
    line-height: 1.5;
}





/* Bookings Container */
.bookings-container {
    padding: 20px;
    position: relative;
    min-height: calc(100vh - 200px);
}

.bookings-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px; /* Extra padding to prevent cards from being cut off by bottom nav */
}

/* Booking Card */
.booking-card {
    background: #000000;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.booking-card:hover {
    border-color: #c8a165;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 161, 101, 0.2);
}

.booking-header {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    padding: 20px;
    border-bottom: 1px solid #333;
    position: relative;
}

.booking-title {
    color: #c8a165;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-type {
    display: inline-block;
    background: #333;
    color: #c8a165;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-content {
    padding: 20px;
}

.booking-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    color: #c8a165;
    width: 16px;
    text-align: center;
}

.info-label {
    color: #999;
    font-size: 0.9em;
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
}

.booking-description {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 15px;
    background: #111111;
    border-radius: 8px;
    border-left: 3px solid #c8a165;
}

.booking-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: #c8a165;
    color: #000000;
}

.action-btn.primary:hover {
    background: #d4b175;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #333;
    color: #ffffff;
    border: 1px solid #555;
}

.action-btn.secondary:hover {
    background: #444;
    border-color: #666;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: #2d5a2d;
    color: #4ade80;
}

.status-past {
    background: #5a2d2d;
    color: #f87171;
}

/* Cancel Dialog Styles */
.cancel-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.cancel-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.cancel-dialog-header {
    background: #000000;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c8a165;
}

.cancel-dialog-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #c8a165;
}

.close-cancel-dialog {
    background: none;
    border: none;
    color: #c8a165;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-cancel-dialog:hover {
    background: rgba(200, 161, 101, 0.1);
}

.cancel-dialog-content {
    padding: 20px;
    background: #000000;
    color: #fff;
}

.cancel-warning {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(200, 161, 101, 0.1);
    border: 1px solid #c8a165;
    border-radius: 6px;
}

.cancel-warning i {
    font-size: 1.5em;
    color: #c8a165;
    margin-bottom: 8px;
    display: block;
}

.cancel-warning h4 {
    margin: 0;
    color: #c8a165;
    font-size: 1em;
}

.booking-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 3px solid #c8a165;
}

.booking-details p {
    margin: 4px 0;
    color: #fff;
    font-size: 0.9em;
}

.refund-policy {
    background: rgba(200, 161, 101, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 3px solid #c8a165;
}

.refund-policy h5 {
    margin: 0 0 8px 0;
    color: #c8a165;
    font-size: 0.9em;
}

.refund-policy ul {
    margin: 0;
    padding-left: 16px;
    color: #fff;
}

.refund-policy li {
    margin: 3px 0;
    font-size: 0.8em;
}

.cancel-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cancel-confirm-btn {
    background: #c8a165;
    color: #000000;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.cancel-confirm-btn:hover {
    background: #b89454;
}

.cancel-confirm-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.cancel-cancel-btn {
    background: transparent;
    color: #c8a165;
    border: 1px solid #c8a165;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.cancel-cancel-btn:hover {
    background: rgba(200, 161, 101, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bookings-title {
        font-size: 1.5em;
    }
    
    .bookings-filter {
        gap: 10px;
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85em;
        gap: 8px;
        width: 200px;
        justify-content: center;
    }
    
    .bookings-grid {
        gap: 15px;
    }
    
    .booking-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }

    .bookings-container {
        padding: 10px;
        min-height: calc(100vh - 220px);
    }
}

@media (max-width: 520px) {
    .bookings-filter {
        gap: 8px;
        padding: 12px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8em;
        gap: 6px;
        width: 160px;
    }
    
    .filter-btn span {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .bookings-header {
        padding: 15px;
    }
    
    .bookings-container {
        padding: 15px;
    }
    
    .booking-header,
    .booking-content {
        padding: 15px;
    }
    
    .booking-title {
        font-size: 1.1em;
    }

    .cancel-dialog {
        width: 95%;
        margin: 10px;
    }
    
    .cancel-actions {
        flex-direction: column;
    }
    
    .cancel-dialog-header {
        padding: 15px;
    }
    
    .cancel-dialog-content {
        padding: 15px;
    }
}
