/* --- TourFlow Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --confirmed: #10b981;
    --pending: #f59e0b;
    --cancelled: #ef4444;
    --text-primary: #374151;
    --text-secondary: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(209, 213, 219, 0.5);
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --blur: blur(8px);
}

body {
    background: linear-gradient(to right, #f9fafb, #e5e7eb);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    z-index: -1;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    grid-template-rows: 80px 1fr;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

/* --- Top Meter (from TourFlow) --- */
.top-meter {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.total-bookings {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
}

.status-breakdown {
    display: flex;
    gap: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.status-item.confirmed .status-indicator { background-color: var(--confirmed); }
.status-item.pending .status-indicator { background-color: var(--pending); }
.status-item.cancelled .status-indicator { background-color: var(--cancelled); }

/* --- Sidebars (from TourFlow) --- */
.sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.left-sidebar {
    grid-row: 2;
}

.right-sidebar {
    grid-row: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
    color: var(--primary-light);
}

.menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.menu-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Badge for menu item (from LeftSidebar.js) */
.menu-badge {
    margin-left: auto;
    background-color: var(--pending);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

/* --- Center Content --- */
.center-content {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 8px; /* For scrollbar */
}

/* Header/Search Bar (Your original CSS, adapted for TourFlow) */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
}

.search-bar i {
    color: #9ca3af;
    font-size: 0.9rem;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.header-btn {
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    background: var(--primary);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--primary-light);
}

.header-btn i {
    font-size: 0.8rem;
}

.btn-logout {
    background: #f3f4f6;
    color: var(--text-secondary);
    border-color: #e5e7eb;
}
.btn-logout:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}


/* --- Fix: Single Column Cards --- */
.booking-cards {
    grid-template-columns: 1fr; /* Make cards single column */
    gap: 15px;
}
.booking-card {
    max-width: 100%; /* Allow card to fill the column */
}
/* --- End Fix --- */

/* --- Booking Card (NEW Structure) --- */
.booking-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    cursor: pointer;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* This is the top color bar */
.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}
.booking-confirmed::before { background-color: var(--confirmed); }
.booking-pending::before { background-color: var(--pending); }
.booking-cancelled::before { background-color: var(--cancelled); }

/* Status Badge (from TourFlow) */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-confirmed-badge { background-color: rgba(16, 185, 129, 0.2); color: var(--confirmed); }
.status-pending-badge { background-color: rgba(245, 158, 11, 0.2); color: var(--pending); }
.status-cancelled-badge { background-color: rgba(239, 68, 68, 0.2); color: var(--cancelled); }


/* Card Sections (Your structure) */
.card-content {
    padding: 16px;
}

.card-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.booking-id {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
}

.card-header {
    margin-bottom: 16px;
}

.tour-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tour-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Card Body (Details) */
.card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    /* This will be toggled by JS */
    display: none; 
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}
.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

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

/* Clickable Links for WhatsApp/Map */
.detail-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.detail-link:hover {
    text-decoration: underline;
}

/* Card Footer (Actions) */
.card-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: 12px;
}

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

.action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.action-btn i {
    font-size: 0.8rem;
}

.btn-accept { background-color: var(--primary); color: white; }
.btn-accept:hover { background-color: var(--primary-light); }

.btn-reject { background-color: #f3f4f6; color: var(--cancelled); }
.btn-reject:hover { background-color: #fee2e2; }

.btn-details { background-color: #f3f4f6; color: var(--text-secondary); }
.btn-details:hover { background-color: #e5e7eb; }

/* --- Confirmation State (Your original CSS) --- */
.footer-state-confirm {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 12px;
}

.action-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-input-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.action-input-group input {
    font-size: 0.9rem;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: var(--text-primary);
}

.btn-cancel-action {
    background-color: #f3f4f6;
    color: var(--text-secondary);
}
.btn-cancel-action:hover {
    background-color: #e5e7eb;
}

.btn-confirm-action {
    background-color: var(--primary);
    color: white;
}
/* This is for the "Reject" confirm button */
.is-rejecting .btn-confirm-action {
    background-color: var(--cancelled);
}


/* --- Card State Toggling (CRITICAL) --- */
/* REMOVE all old .is-confirming logic */
.booking-card .card-body {
    display: none; /* Old, no longer used */
}
.booking-card .card-footer {
    display: none; /* We moved all logic to the modal */
}
/* --- NEW Summary Styles --- */
.card-note {
    background: #fffbe6;
    color: #92400e;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-content-summary {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.card-content-summary p {
    line-height: 1.4;
}
.card-content-summary strong {
    color: var(--text-primary);
    font-weight: 600;
}
.card-content-summary .summary-divider {
    margin: 0 5px;
    color: #d1d5db;
}
.card-content-summary .fa-map-marker-alt,
.card-content-summary .fa-clock {
    margin-right: 6px;
    width: 12px;
    text-align: center;
    color: var(--primary);
}
.card-summary-contact {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}
.card-summary-contact .detail-link,
.card-summary-contact .detail-value {
    font-weight: 600;
    font-size: 0.95rem;
}


/* --- Right Sidebar (from TourFlow) --- */
.calendar-section {
    margin-bottom: 30px;
}
.section-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.calendar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}
.calendar-nav {
    display: flex;
    gap: 10px;
}
.nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.nav-btn:hover {
    background: #e5e7eb;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-day { /* Day name (Sun, Mon) */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.calendar-date { /* Day number (1, 2) */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.calendar-date:hover {
    background: rgba(99, 102, 241, 0.1);
}
.calendar-date.active {
    background: var(--primary);
    color: white;
}
.calendar-date.booking {
    position: relative;
    font-weight: 600;
    color: var(--primary);
}
.calendar-date.booking::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.filter-group {
    margin-bottom: 16px;
}
.filter-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}
.filter-input { /* Date input */
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
}

/* --- NEW: Booking Modal Styles --- */
#booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#booking-modal {
    width: 90%;
    max-width: 900px;
    background: #f9fafb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
}
.modal-close {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow-y: auto;
}

.modal-customer-info, .modal-operator-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-customer-info h4, .modal-operator-inputs h4 {
    font-size: 1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}
a.info-value {
    color: var(--primary);
    text-decoration: none;
}
a.info-value:hover { text-decoration: underline; }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.input-group input[type="text"] {
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
}

.modal-map-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal-map-container label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
#pickup-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.modal-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cancel {
    background: white;
    color: var(--text-secondary);
    border: 1px solid #d1d5db;
}
.btn-cancel:hover { background: #e5e7eb; }
.btn-reject {
    background: var(--cancelled);
    color: white;
}
.btn-reject:hover { background: #ef4444; }
.btn-confirm {
    background: var(--confirmed);
    color: white;
}
.btn-confirm:hover { background: #10b981; }
/* --- END Modal Styles --- */


/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto 1fr; /* Allow header to size itself */
    }
   
    .right-sidebar {
        display: none;
    }
   
    .top-meter {
        grid-column: 1 / -1;
    }
    .status-breakdown {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr; /* top-meter, left-sidebar, center-content */
        height: calc(100vh - 20px);
        gap: 10px;
    }
   
    .left-sidebar, .center-content {
        grid-column: 1;
    }
   
    .left-sidebar {
        grid-row: 2;
        padding: 15px;
    }
    .logo {
        margin-bottom: 15px;
    }
    .menu {
        flex-direction: row;
        overflow-x: auto;
    }
    .menu-item {
        flex-shrink: 0;
    }

    .center-content {
        grid-row: 3;
        gap: 10px;
    }
   
    .booking-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
   
    .content-header {
        flex-direction: column;
        gap: 10px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .filter-select {
        flex-grow: 1;
    }

    /* Modal mobile styles */
    #booking-modal {
        width: 95%;
        max-height: 95vh;
    }
    .modal-content {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    #pickup-map {
        height: 200px;
    }
}
/* --- BWA REDESIGN SNIPPET (v4) --- */

/* --- Top Meter: Logo & Chart --- */
.top-meter {
    justify-content: space-between;
}

.top-meter-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.top-meter-logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.top-meter-logo span {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-chart {
    display: flex;
    align-items: flex-end; /* Align to bottom */
    gap: 5px;
    margin-left: 30px;
    height: 36px; /* Set a fixed height for the container */
}
.chart-bar {
    width: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    /* Height will be set by inline style */
}
.chart-bar.chart-confirmed { background-color: var(--confirmed); }
.chart-bar.chart-pending { background-color: var(--pending); }
.chart-bar.chart-cancelled { background-color: var(--cancelled); }

/* --- Left Sidebar: Logout Button --- */
.left-sidebar {
    justify-content: space-between; /* Pushes footer down */
}
.sidebar-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 10px;
    margin-top: 10px;
}
.logout-btn {
    color: var(--cancelled);
}
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cancelled);
}

/* --- Booking Card Header Redesign --- */

/* Remove the old top color bar */
.booking-card::before {
    display: none;
}

/* Style the new header */
.card-status-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.5); /* Default glass */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0; /* Remove old margin */
}
.card-status-header .header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-status-header .booking-id {
    font-size: 0.9rem; /* Made it larger */
    font-weight: 600; /* Slightly less bold */
    font-family: 'Segoe UI', system-ui, sans-serif; /* Professional font */
    color: #ffffff; /* Solid white */
    opacity: 1; /* Removed transparency */
}
.card-status-header .tour-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

/* Apply Status Colors with Glass Effect */
.booking-pending .card-status-header {
    background: rgba(245, 158, 11, 0.8); /* Orange Glass */
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.booking-confirmed .card-status-header {
    background: rgba(16, 185, 129, 0.8); /* Green Glass */
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.booking-cancelled .card-status-header {
    background: rgba(239, 68, 68, 0.8); /* Red Glass */
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.booking-cancelled .card-status-header .tour-name,
.booking-cancelled .card-status-header .booking-id {
    color: rgba(255, 255, 255, 0.9);
}


/* --- Card Content & Footer Redesign --- */

/* The tour date & pax are now the new "header" of the content */
.card-header {
    display: flex; /* <-- ADDED */
    justify-content: space-between; /* <-- ADDED */
    align-items: center; /* <-- ADDED */
    padding: 12px 16px 0 16px;
    margin-bottom: 12px;
}
.card-header .tour-date,
.card-header .tour-pax { /* <-- ADDED .tour-pax */
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header .tour-pax { /* <-- ADDED */
    color: var(--primary); /* Make pax count stand out */
}

.card-body {
    padding: 0 16px; /* Remove top/bottom padding */
    margin-bottom: 16px;
}

.card-footer {
    /* The footer now ONLY contains the hidden form */
    border-top: none;
    padding: 0 16px 16px 16px;
    margin-top: 0;
}

/* --- Hide Accept/Reject Buttons --- */
.footer-state-initial {
    display: none !important; /* Always hide this */
}

/* --- Expand/Collapse Logic --- */
/* This logic is no longer needed as the footer is gone and body is replaced by summary */
.booking-card .footer-state-confirm {
    display: none; /* Always hide this */
}
/* Special logic for confirmed/cancelled cards (no change) */
.booking-confirmed.is-confirming .footer-state-confirm,
.booking-cancelled.is-confirming .footer-state-confirm {
    display: none; /* Hide form */
}
.booking-confirmed.is-confirming .card-body,
.booking-cancelled.is-confirming .card-body {
    margin-bottom: 0; /* Remove bottom margin if no form */
}
/* --- End BWA Redesign Snippet --- */