@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

/**
 * Bus Booking System - Professional RedBus Style
 * Version: 3.0.0
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary-color: #8B1E12;
    --primary-dark: #6f170e;
    --primary-light: #ad3b2e;
    --secondary-color: #D4A017;
    --dv-gold: #D4A017;
    --dv-ivory: #F6F1E8;
    --dv-dark: #2B2B2B;
    --dv-success: #2E7D32;
    --text-dark: #2B2B2B;
    --text-gray: #5f5a52;
    --text-light: #8a8378;
    --border-color: #e6ded1;
    --bg-light: #F6F1E8;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(43, 43, 43, 0.08);
    --shadow-hover: 0 8px 20px rgba(43, 43, 43, 0.13);
    --bbs-heading-font: 'Cinzel', Georgia, serif;
    --bbs-body-font: 'Poppins', Arial, sans-serif;
}

.bbs-booking-container,
.bbs-booking-container * {
    font-family: var(--bbs-body-font) !important;
}

.bbs-booking-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   SEARCH CARD - RedBus Style
   ============================================ */
.bbs-search-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.bbs-search-card h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
}

.bbs-search-card > p {
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.bbs-search-form {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.bbs-form-group {
    flex: 1;
    min-width: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbs-form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.bbs-form-input {
    width: 100% !important;
    height: 54px !important;
    padding: 12px 20px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white !important;
    font-size: 15px !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}

.bbs-form-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(200, 80, 16, 0.15) !important;
    z-index: 2;
}

.bbs-search-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    height: 54px !important;
    padding: 0 35px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    line-height: 54px !important;
}

.bbs-search-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* ============================================
   AUTOCOMPLETE
   ============================================ */
.bbs-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 4px;
}

.bbs-autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.bbs-autocomplete-item:hover {
    background: #fbf4f0;
    border-left-color: var(--primary-color);
    padding-left: 24px;
}

.bbs-autocomplete-empty {
    padding: 12px 20px;
    color: #777;
    font-size: 14px;
}

/* ============================================
   RESULTS CARD
   ============================================ */
.bbs-results-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.bbs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* ============================================
   SEARCH RESULTS — PROFESSIONAL & ELEGANT
   All rules scoped under .bbs-booking-container
   for guaranteed override of WordPress theme styles
   ============================================ */

/* TOP SEARCH BAR */
.bbs-booking-container .bbs-top-search-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 24px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    flex-wrap: wrap;
}

.bbs-booking-container .bbs-top-search-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.bbs-booking-container .bbs-top-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bbs-booking-container .bbs-top-val {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Swap cities button in top bar */
.bbs-booking-container #bbs-top-swap,
.bbs-booking-container .bbs-top-swap-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #64748b !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1 !important;
    font-size: 14px !important;
}

.bbs-booking-container #bbs-top-swap:hover,
.bbs-booking-container .bbs-top-swap-btn:hover {
    background: #2B2B2B !important;
    color: #ffffff !important;
    border-color: #2B2B2B !important;
}

/* Date navigation arrows */
.bbs-booking-container .bbs-top-date-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bbs-booking-container #bbs-prev-day-btn,
.bbs-booking-container #bbs-next-day-btn,
.bbs-booking-container .bbs-date-nav-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.bbs-booking-container #bbs-prev-day-btn:hover,
.bbs-booking-container #bbs-next-day-btn:hover,
.bbs-booking-container .bbs-date-nav-btn:hover {
    background: #2B2B2B !important;
    color: #ffffff !important;
    border-color: #2B2B2B !important;
}

/* Modify Search button */
.bbs-booking-container #bbs-back-search,
.bbs-booking-container .bbs-top-modify-btn {
    background: #8B1E12 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.bbs-booking-container #bbs-back-search:hover,
.bbs-booking-container .bbs-top-modify-btn:hover {
    background: #8B1E12 !important;
    color: #ffffff !important;
}

/* ============================================
   RESULTS LAYOUT
   ============================================ */
.bbs-search-results-wrapper {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .bbs-search-results-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.bbs-filters-sidebar { width: 100%; }

.bbs-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.bbs-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.bbs-filter-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

/* Clear All Filters button */
.bbs-booking-container #bbs-clear-filters-btn,
.bbs-booking-container .bbs-clear-filters {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 10px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}

.bbs-booking-container #bbs-clear-filters-btn:hover,
.bbs-booking-container .bbs-clear-filters:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.bbs-filter-group {
    margin-bottom: 20px;
}

.bbs-filter-group:last-child { margin-bottom: 0; }

.bbs-filter-group-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

/* Time filter chips */
.bbs-time-chips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bbs-booking-container .bbs-time-chip {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    width: 100% !important;
}

.bbs-booking-container .bbs-time-chip:hover {
    border-color: #1e3a8a !important;
    background: #eff6ff !important;
}

.bbs-booking-container .bbs-time-chip.active {
    background: #2B2B2B !important;
    border-color: #2B2B2B !important;
}

.bbs-booking-container .bbs-time-chip .bbs-chip-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    display: block !important;
}

.bbs-booking-container .bbs-time-chip .bbs-chip-text {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.bbs-booking-container .bbs-time-chip.active .bbs-chip-text {
    color: #ffffff !important;
}

/* Checkbox filters */
.bbs-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbs-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.bbs-checkbox-item input[type="checkbox"] {
    accent-color: #1e3a8a;
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ============================================
   SORT BAR
   ============================================ */
.bbs-results-main {
    width: 100%;
    min-width: 0;
}

.bbs-sort-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.bbs-buses-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.bbs-buses-count strong {
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 700;
}

.bbs-sort-options {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bbs-sort-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 2px;
    white-space: nowrap;
}

/* Sort tabs — must override WordPress theme */
.bbs-booking-container .bbs-sort-tab {
    background: transparent !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}

.bbs-booking-container .bbs-sort-tab:hover {
    color: #1e3a8a !important;
    background: #f1f5f9 !important;
    border-color: #c7d2fe !important;
}

.bbs-booking-container .bbs-sort-tab.active {
    background: #8B1E12 !important;
    color: #ffffff !important;
    border-color: #8B1E12 !important;
}

/* Sort direction arrow indicator */
.bbs-booking-container .bbs-sort-tab.active::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    opacity: 0.85;
    vertical-align: middle;
    line-height: 1;
    font-style: normal;
}

.bbs-booking-container .bbs-sort-tab.active.sort-asc::after {
    content: '↑';
}

.bbs-booking-container .bbs-sort-tab.active.sort-desc::after {
    content: '↓';
}

/* ============================================
   BUS RESULT CARDS
   ============================================ */
.bbs-bus-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1.6fr 1.8fr 1fr;
    gap: 20px;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
    .bbs-bus-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.bbs-bus-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.09);
}

.bus-card-left { min-width: 0; }

.bus-card-left .bus-name,
.bbs-bus-card .bus-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.bus-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bus-type-pill {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    text-transform: capitalize !important;
    border: none !important;
    display: inline-block !important;
}

.ac-badge {
    background: #f0fdf4 !important;
    color: #15803d !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.nonac-badge {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-block !important;
}

/* Amenity pills */
.bbs-bus-amenities {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.bbs-amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.bbs-amenity-pill img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.bbs-amenity-dot {
    width: 5px;
    height: 5px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
}

.bbs-amenity-more {
    color: #1e3a8a;
    border-color: #bfdbfe;
    background: #eff6ff;
    font-weight: 600;
}

/* Journey timeline */
.bus-card-center { min-width: 0; }

.timing-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.timing-wrapper .departure,
.timing-wrapper .arrival {
    text-align: center;
    min-width: 58px;
}

.timing-wrapper .time {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.timing-wrapper .city-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

.journey-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 6px;
}

.duration-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.line-track {
    width: 100%;
    height: 1.5px;
    background: #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.start-dot,
.end-dot {
    width: 7px;
    height: 7px;
    background: #8B1E12;
    border-radius: 50%;
    flex-shrink: 0;
}

.arr-date {
    color: #94a3b8;
    font-size: 10px;
}

.next-day-badge {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
}

/* Fare & CTA column */
.bus-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
}

.seat-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.seat-badge.seat-available {
    color: #15803d;
    background: #f0fdf4;
}

.seat-badge.seat-filling {
    color: #b45309;
    background: #fffbeb;
}

.seat-badge.seat-soldout {
    color: #dc2626;
    background: #fef2f2;
}

.fare-box { text-align: right; }

.original-fare {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
}

.save-badge {
    font-size: 10px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.final-fare {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

/* View Seats button */
.bbs-booking-container .view-seats-btn {
    background: #8B1E12 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 24px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-transform: none !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
}

.bbs-booking-container .view-seats-btn:hover {
    background: #8B1E12 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
}

.bbs-booking-container .view-seats-btn[disabled],
.bbs-booking-container .view-seats-btn:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* No results */
.bbs-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.bbs-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.bbs-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.bbs-no-results p {
    font-size: 14px;
    color: #64748b;
}
/* ============================================
   SEAT SELECTION STYLES
   ============================================ */
.bbs-seat-selection-card {
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.bbs-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f4;
}

.bbs-selection-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #1f2937;
}

.bbs-seat-layout-container {
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 22px 24px 26px;
    min-height: 430px;
    overflow-x: auto;
    position: relative;
}

.bbs-bus-type-indicator {
    text-align: center;
    margin-bottom: 16px;
}

.bus-type-label {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.bbs-seat-grid {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
}

.bbs-seat-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

.bbs-driver-row {
    margin-bottom: 2px;
    align-items: center;
}

.bbs-driver-spacer {
    width: 55px;
    height: 38px;
    flex: 0 0 auto;
}

.bbs-sleeper-deck .bbs-driver-spacer {
    width: 46px;
}

.bbs-hybrid-deck .bbs-driver-spacer {
    width: 42px;
}

.bbs-driver-aisle {
    flex: 0 0 auto;
}

.bbs-driver-position {
    width: 52px;
    min-height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #d8dee8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 6px 14px rgba(15, 23, 42, 0.08);
}

.bbs-sleeper-deck .bbs-driver-position {
    width: 48px;
    min-height: 48px;
}

.bbs-hybrid-deck .bbs-driver-position {
    width: 44px;
    min-height: 44px;
}

.bbs-driver-steering {
    width: 34px;
    height: 34px;
    display: block;
    box-sizing: border-box;
    object-fit: contain;
    line-height: 0;
    overflow: hidden;
}

.bbs-driver-steering svg,
.bbs-driver-steering img {
    width: 100%;
    height: 100%;
    display: block;
}

.bbs-sleeper-decks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.bbs-sleeper-deck,
.bbs-hybrid-deck {
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 16px 14px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bbs-sleeper-seat-grid,
.bbs-hybrid-seat-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bbs-sleeper-deck-title {
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.bbs-sleeper-seat-grid {
    gap: 12px;
}

.bbs-sleeper-seat-grid .bbs-seat-row {
    gap: 11px;
}

.bbs-sleeper-seat-grid .bbs-aisle {
    width: 20px;
}

/* ============================================
   Horizontal Sleeper Bus Deck Layout (Screenshot 2)
   ============================================ */
.bbs-horizontal-decks-wrapper {
    display: flex;
    flex-direction: row;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    margin: 16px auto;
}

.bbs-deck-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

.bbs-deck-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    padding: 0 4px;
}

.bbs-horizontal-deck-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.bbs-horizontal-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}

.bbs-horizontal-aisle-row {
    height: 20px;
    width: 100%;
}

.bbs-driver-badge {
    width: 38px;
    height: 38px;
    background: transparent;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.bbs-driver-badge img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.bbs-driver-badge-placeholder {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    margin-right: 8px;
}

/* Horizontal Sleeper Seat Pill */
.bbs-seat.horizontal-sleeper-pill {
    width: 58px;
    height: 30px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 0 8px;
    border-radius: 6px;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bbs-seat.horizontal-sleeper-pill::before,
.bbs-seat.horizontal-sleeper-pill::after {
    display: none !important;
}

.bbs-seat.horizontal-sleeper-pill .bbs-seat-number-txt {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    line-height: 1;
}

.bbs-seat.horizontal-sleeper-pill .bbs-pillow-icon {
    width: 6px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 99px;
    opacity: 0.75;
    flex-shrink: 0;
    margin-left: 4px;
    box-sizing: border-box;
}

/* State: Available */
.bbs-seat.horizontal-sleeper-pill.available {
    background: #ffffff;
    border: 1.5px solid #16a34a;
    color: #16a34a;
}

.bbs-seat.horizontal-sleeper-pill.available:hover {
    background: #f0fdf4;
    border-color: #15803d;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* State: Selected */
.bbs-seat.horizontal-sleeper-pill.selected {
    background: #ea580c;
    border: 1.5px solid #ea580c;
    color: #ffffff;
}

.bbs-seat.horizontal-sleeper-pill.selected:hover {
    background: #c2410c;
}

/* State: Booked */
.bbs-seat.horizontal-sleeper-pill.booked {
    background: #475569;
    border: 1.5px solid #334155;
    color: #ffffff;
    cursor: not-allowed;
}

.bbs-seat-pill-blank {
    width: 58px;
    height: 30px;
    flex-shrink: 0;
}

.bbs-hybrid-seat-grid {
    gap: 10px;
}

.bbs-hybrid-seat-grid .bbs-seat-row {
    gap: 8px;
}

.bbs-hybrid-seat-grid .bbs-aisle {
    width: 20px;
}

.bbs-seat {
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #d1d5db;
    color: #555;
    box-sizing: border-box;
}

/* Cushion */
.bbs-seat::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 60%;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

/* Headrest / Pillow */
.bbs-seat::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    right: 8px;
    height: 20%;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.bbs-seat.seat-sleeper {
    width: 50px;
    height: 82px;
}

.bbs-sleeper-deck .bbs-seat.seat-sleeper {
    width: 46px;
    height: 78px;
}

.bbs-seat.seat-sleeper::after {
    height: 75%;
    bottom: 3px;
    left: 3px;
    right: 3px;
}

.bbs-seat.seat-sleeper::before {
    height: 15%;
    top: 3px;
    left: 6px;
    right: 6px;
}

.bbs-seat.seat-semi-sleeper {
    width: 55px;
    height: 55px;
}

.bbs-hybrid-deck .bbs-seat.seat-semi-sleeper {
    width: 42px;
    height: 42px;
}

.bbs-hybrid-deck .bbs-seat.seat-sleeper {
    width: 38px;
    height: 68px;
}

.bbs-seat.seat-hybrid-sleeper {
    border-radius: 9px;
}

.bbs-seat.seat-hybrid-seater {
    border-radius: 8px;
}

.bbs-seat.seat-seater {
    width: 50px;
    height: 50px;
}

/* State: Available */
.bbs-seat.available {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
}

.bbs-seat.available::after {
    background: rgba(46, 125, 50, 0.12);
}

.bbs-seat.available::before {
    background: rgba(46, 125, 50, 0.22);
}

.bbs-seat.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
    background: #dcfce7;
}

/* State: Booked */
.bbs-seat.booked {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.82;
}

.bbs-seat.booked::after {
    background: rgba(144, 164, 174, 0.12);
}

.bbs-seat.booked::before {
    background: rgba(144, 164, 174, 0.22);
}

.bbs-seat.booked.booked-male {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: none;
}

.bbs-seat.booked.booked-female {
    border-color: #ec4899;
    background: #fdf2f8;
    box-shadow: none;
}

.bbs-seat.available.allowed-male {
    border-style: dashed;
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow: none;
}

.bbs-seat.available.allowed-female {
    border-style: dashed;
    border-color: #ec4899;
    background: #fff7fb;
    box-shadow: none;
}

.bbs-seat.selected.allowed-male {
    border-color: #2563eb;
    border-style: dashed;
    background: #eff6ff;
    color: #2563eb;
}

.bbs-seat.selected.allowed-female {
    border-color: #ec4899;
    border-style: dashed;
    background: #fdf2f8;
    color: #ec4899;
}

.bbs-gender-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
    line-height: 16px;
    font-weight: 800;
    text-align: center;
    z-index: 4;
}

.bbs-gender-male {
    background: #2563eb;
}

.bbs-gender-female {
    background: #ec4899;
}

.bbs-seat-restriction {
    position: absolute;
    left: 50%;
    bottom: -13px;
    transform: translateX(-50%);
    padding: 2px 5px;
    border-radius: 999px;
    background: #fff;
    font-size: 7px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    z-index: 4;
}

.bbs-seat-gender-label {
    position: absolute;
    left: 50%;
    bottom: -13px;
    transform: translateX(-50%);
    padding: 2px 5px;
    border-radius: 999px;
    background: #fff;
    font-size: 7px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    z-index: 4;
}

.bbs-seat-gender-label.male {
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.bbs-seat-gender-label.female {
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.35);
}

.bbs-seat.allowed-male .bbs-seat-restriction {
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.bbs-seat.allowed-female .bbs-seat-restriction {
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.35);
}

/* State: Selected */
.bbs-seat.selected {
    background: #fff7ed;
    border-color: var(--primary-color);
    color: var(--primary-color);
    animation: seatPulse 0.4s ease;
}

.bbs-seat.selected::after {
    background: rgba(200, 80, 16, 0.15);
}

.bbs-seat.selected::before {
    background: rgba(200, 80, 16, 0.3);
}

/* Legend Styles */
.bbs-seat-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 13px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6eaf0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    flex-wrap: wrap;
}

.bbs-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.bbs-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #ddd;
    box-sizing: border-box;
}

.bbs-legend-color.seat-available {
    background: #e8f5e9;
    border-color: #2e7d32;
}

.bbs-legend-color.seat-selected {
    background: #fdf2eb;
    border-color: var(--primary-color);
}

.bbs-legend-color.seat-booked {
    background: #eceff1;
    border-color: #cfd8dc;
}

.bbs-legend-color.seat-booked-male {
    background: #eff6ff;
    border-color: #2563eb;
}

.bbs-legend-color.seat-booked-female {
    background: #fdf2f8;
    border-color: #ec4899;
}

.bbs-legend-color.seat-female-only {
    background: #ffffff;
    border-color: #ec4899;
    border-style: dashed;
}

.bbs-legend-color.seat-male-only {
    background: #ffffff;
    border-color: #2563eb;
    border-style: dashed;
}

.bbs-seat-gender-note {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.bbs-seat-gender-note.male {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.bbs-seat-gender-note.female {
    color: #be185d;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

@keyframes seatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.bbs-seat-icon {
    font-size: 18px;
    margin-bottom: 3px;
    z-index: 2;
}

.bbs-seat-icon.sleeper-berth-icon {
    width: 22px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.28;
    margin-bottom: 8px;
}

.bbs-seat-number {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
}

.bbs-aisle {
    width: 28px;
    position: relative;
    align-self: stretch;
}

.bbs-aisle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 62%;
    border-left: 1px dashed #cbd5e1;
}

.bbs-selection-summary {
    position: sticky;
    bottom: -24px;
    width: calc(100% + 50px) !important;
    margin-top: 24px !important;
    padding: 20px 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e6eaf0 !important;
    box-shadow: 0 -14px 32px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 99 !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-left: -25px !important;
    margin-right: -25px !important;
    margin-bottom: -25px !important;
    border-radius: 0 0 18px 18px !important;
    box-sizing: border-box !important;
}

.bbs-summary-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.bbs-summary-left h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.bbs-selected-seats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bbs-selected-seat-item {
    background: white;
    padding: 9px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e6eaf0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.bbs-seat-info {
    font-weight: 800;
    color: #1f2937;
}

.bbs-remove-seat {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border: none;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.bbs-remove-seat:hover {
    background: #fecaca;
    color: #991b1b;
}

.bbs-summary-right {
    flex: 0 0 auto !important;
    text-align: right;
}

.bbs-total-fare {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #1f2937;
}

.bbs-total-fare span:last-child {
    color: var(--primary-color);
    font-size: 24px;
}

.bbs-proceed-btn {
    background: linear-gradient(135deg, #e95b58 0%, #d94b35 100%);
    color: white;
    border: none;
    min-height: 46px;
    padding: 0 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 10px 22px rgba(217, 75, 53, 0.22);
}

.bbs-proceed-btn:hover {
    background: linear-gradient(135deg, #d94b35 0%, #c43d27 100%);
    transform: translateY(-2px);
}

/* ============================================
   LOADING & MESSAGES
   ============================================ */
.bbs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bbs-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.bbs-loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bbs-no-results {
    text-align: center;
    padding: 60px 20px;
}

.bbs-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.bbs-no-results h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.bbs-no-results p {
    color: var(--text-gray);
}

/* ============================================
   PROFESSIONAL CONFIRMATION PAGE
   ============================================ */
.bbs-confirmation-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.bbs-confirmation-success {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%);
    border: 1px solid #bbf7d0;
    border-left: 6px solid #16a34a;
    border-radius: 12px;
    color: #162033;
    margin-bottom: 20px;
    box-shadow: 0 16px 38px rgba(22, 163, 74, 0.09);
}

.bbs-success-icon {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex: 0 0 auto;
}

.bbs-success-copy {
    min-width: 0;
}

.bbs-success-kicker {
    display: block;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bbs-confirmation-success h2 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.bbs-confirmation-success p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.bbs-booking-id-large {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: right;
    white-space: nowrap;
}

.bbs-booking-id-large span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.bbs-booking-id-large strong {
    color: #111827;
    font-size: 14px;
    font-family: monospace !important;
    letter-spacing: .4px;
}

/* Ticket Container */
.bbs-ticket-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
    overflow: hidden;
    margin-bottom: 18px;
}

.bbs-ticket-header {
    background: linear-gradient(135deg, #183765 0%, #244b87 100%);
    color: white;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bbs-ticket-title h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .5px;
}

.bbs-ticket-title p {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.78);
}

.bbs-ticket-booking-id {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 9px 14px;
    border-radius: 8px;
    text-align: center;
}

.bbs-ticket-booking-id span {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

.bbs-ticket-booking-id strong {
    color: #ffffff;
    font-size: 15px;
    font-family: monospace !important;
    letter-spacing: .5px;
}

/* Journey Details */
.bbs-journey-details {
    padding: 30px 26px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bbs-journey-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.bbs-journey-point {
    text-align: center;
    min-width: 0;
}

.bbs-journey-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bbs-journey-city {
    font-size: 19px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.bbs-journey-time {
    font-size: 26px;
    font-weight: 800;
    color: #244b87;
    margin-bottom: 5px;
}

.bbs-journey-date {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.bbs-journey-arrow {
    text-align: center;
    position: relative;
}

.bbs-journey-line {
    height: 2px;
    background: #cbd5e1;
    position: relative;
}

.bbs-journey-line::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    width: 12px;
    height: 12px;
    background: #244b87;
    border: 3px solid #f8fafc;
    border-radius: 50%;
}

.bbs-journey-duration {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 600;
}

/* Ticket Sections */
.bbs-ticket-section {
    padding: 24px 26px;
    border-bottom: 1px solid #e2e8f0;
}

.bbs-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bbs-section-icon {
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #244b87;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.bbs-section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* Passenger Cards */
.bbs-passenger-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbs-passenger-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fbfdff;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.bbs-passenger-seat {
    background: #c85010;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    min-width: 64px;
    text-align: center;
}

.bbs-passenger-info {
    flex: 1;
}

.bbs-passenger-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 15px;
}

.bbs-passenger-details {
    font-size: 12px;
    color: #64748b;
}

/* Fare Breakdown */
.bbs-fare-breakdown {
    max-width: 420px;
    margin-left: auto;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.bbs-fare-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}

.bbs-discount {
    color: #10b981;
    font-weight: 600;
}

.bbs-tax {
    color: #64748b;
    font-size: 12px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 5px;
}

.bbs-total {
    border-top: 1px solid #dbe3ef;
    margin-top: 5px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #244b87;
}

/* Points Grid */
.bbs-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bbs-point-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: left;
}

.bbs-point-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bbs-point-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

/* Ticket Footer */
.bbs-ticket-footer {
    background: #f8fafc;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    border-bottom: 1px solid #e2e8f0;
}

.bbs-footer-left, .bbs-footer-right {
    min-width: 0;
}

.bbs-footer-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bbs-footer-value {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 5px;
    font-weight: 500;
}

.bbs-paid-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

/* Terms & Conditions */
.bbs-terms {
    background: #fff8df;
    padding: 18px 24px;
}

.bbs-terms-header {
    font-weight: 800;
    color: #92400e;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbs-terms-list {
    margin: 0 0 0 18px;
    color: #92400e;
    font-size: 12px;
    line-height: 1.7;
}

.bbs-terms-list li {
    margin-bottom: 5px;
}

/* Action Buttons - SINGLE INSTANCE */
.bbs-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bbs-print-btn,
.bbs-download-btn,
.bbs-new-booking-btn {
    min-height: 46px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bbs-print-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.bbs-print-btn:hover {
    background: #f8fafc;
    color: #111827;
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.bbs-download-btn {
    background: #244b87;
    color: white;
}

.bbs-download-btn:hover {
    background: #183765;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(36,75,135,.2);
}

.bbs-new-booking-btn {
    background: #c85010;
    color: white;
}

.bbs-new-booking-btn:hover {
    background: #a83f08;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(200,80,16,.2);
}

/* Next Day Badge */
.next-day-badge {
    background: #f59e0b;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    display: inline-block;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
	.bbs-form-group label {
		color: grey !important;
	}
	
    .bbs-search-form {
        flex-direction: column !important;
        gap: 12px !important;
        background: transparent !important;
        padding: 0 !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .bbs-form-group {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .bbs-form-group label {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }
    
    .bbs-form-input {
        border-radius: 12px !important;
        border: 1.5px solid var(--border-color) !important;
    }
    
    .bbs-search-btn {
        padding: 0 35px !important;
        height: 54px !important;
        border-radius: 12px !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .bbs-swap-container {
        margin: -14px 0 !important;
        height: 28px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .bbs-swap-icon {
        transform: rotate(90deg) !important;
    }
    
    .bbs-swap-icon.rotating {
        transform: rotate(270deg) scale(1.1) !important;
    }

    .bbs-bus-card {
        flex-direction: column;
        text-align: center;
    }
    
    .bus-card-right {
        text-align: center;
    }
    
    .timing-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bbs-booking-container {
        padding: 10px !important;
    }

    .bbs-search-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    
    .bbs-search-card h2 {
        font-size: 22px;
    }
    
    .timing-wrapper {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .bus-card-left,
    .bus-card-center,
    .bus-card-right {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    
    .journey-line {
        width: 100%;
    }
    
    .bbs-confirmation-wrapper {
        padding: 12px 10px 32px;
    }

    .bbs-confirmation-success {
        grid-template-columns: auto 1fr;
        align-items: start;
        padding: 16px;
    }

    .bbs-booking-id-large {
        grid-column: 1 / -1;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    
    .bbs-journey-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .bbs-journey-arrow {
        transform: none;
        margin: 0 auto;
        width: 120px;
    }
    
    .bbs-ticket-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bbs-points-grid {
        grid-template-columns: 1fr;
    }
    
    .bbs-ticket-footer {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .bbs-fare-breakdown {
        margin-left: 0;
    }
    
    .bbs-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bbs-print-btn,
    .bbs-download-btn,
    .bbs-new-booking-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .bbs-seat-selection-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .bbs-selection-summary {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: calc(100% + 32px) !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        margin-bottom: -16px !important;
        border-radius: 0 0 16px 16px !important;
    }

    .bbs-summary-left,
    .bbs-summary-right {
        width: 100% !important;
        text-align: left !important;
    }

    .bbs-seat-legend {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    .bbs-seat-layout-container {
        padding: 14px 8px !important;
    }

    .bbs-sleeper-decks {
        gap: 8px !important;
        max-width: 100% !important;
    }

    .bbs-hybrid-decks {
        gap: 8px !important;
        max-width: 100% !important;
    }

    .bbs-sleeper-deck {
        padding: 12px 6px 14px !important;
        border-radius: 14px !important;
    }

    .bbs-hybrid-deck {
        padding: 12px 6px 14px !important;
        border-radius: 14px !important;
    }

    .bbs-sleeper-deck-title {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .bbs-sleeper-seat-grid,
    .bbs-sleeper-seat-grid .bbs-seat-row,
    .bbs-hybrid-seat-grid,
    .bbs-hybrid-seat-grid .bbs-seat-row {
        gap: 6px !important;
    }

    .bbs-sleeper-seat-grid .bbs-aisle,
    .bbs-hybrid-seat-grid .bbs-aisle {
        width: 8px !important;
    }

    .bbs-driver-spacer,
    .bbs-driver-position {
        width: 40px !important;
    }

    .bbs-driver-position {
        min-height: 32px !important;
        font-size: 7px !important;
        border-radius: 8px !important;
    }

    .bbs-sleeper-deck .bbs-driver-spacer,
    .bbs-sleeper-deck .bbs-driver-position {
        width: 32px !important;
    }

    .bbs-hybrid-deck .bbs-driver-spacer,
    .bbs-hybrid-deck .bbs-driver-position {
        width: 30px !important;
    }

    .bbs-driver-steering {
        width: 15px !important;
        height: 15px !important;
        border-width: 2px !important;
    }
    
    .bbs-seat {
        width: 40px;
        height: 40px;
    }
    
    .bbs-seat.seat-sleeper {
        width: 38px;
        height: 55px;
    }

    .bbs-sleeper-deck .bbs-seat.seat-sleeper {
        width: 32px;
        height: 56px;
    }

    .bbs-hybrid-deck .bbs-seat.seat-semi-sleeper {
        width: 30px;
        height: 30px;
    }

    .bbs-hybrid-deck .bbs-seat.seat-sleeper {
        width: 30px;
        height: 54px;
    }
    
    .bbs-seat-icon {
        font-size: 14px;
    }
    
    .bbs-seat-number {
        font-size: 8px;
    }
    
    .bbs-aisle {
        width: 15px;
    }
}

@media (max-width: 480px) {
    .bbs-confirmation-success {
        padding: 25px 15px;
    }
    
    .bbs-success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .bbs-confirmation-success h2 {
        font-size: 22px;
    }
    
    .bbs-journey-time {
        font-size: 22px;
    }
    
    .bbs-journey-city {
        font-size: 16px;
    }
    
    .bbs-ticket-section {
        padding: 15px 20px;
    }
}

/* Final booking confirmation polish and contrast fixes */
.bbs-confirmation-wrapper {
    max-width: 980px !important;
    color: var(--dv-dark) !important;
}

.bbs-confirmation-success {
    background: linear-gradient(135deg, #2E7D32 0%, #236527 100%) !important;
    border: 1px solid rgba(46, 125, 50, 0.35) !important;
    border-left: 7px solid var(--dv-gold) !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(46, 125, 50, 0.18) !important;
}

.bbs-confirmation-success .bbs-success-icon {
    background: #fff !important;
    color: var(--dv-success) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
}

.bbs-confirmation-success .bbs-success-kicker,
.bbs-confirmation-success h2,
.bbs-confirmation-success p {
    color: #fff !important;
}

.bbs-confirmation-success .bbs-success-kicker {
    opacity: 0.88 !important;
}

.bbs-confirmation-success p {
    opacity: 0.92 !important;
}

.bbs-booking-id-large {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.bbs-booking-id-large span {
    color: var(--primary-color) !important;
}

.bbs-booking-id-large strong {
    color: var(--dv-dark) !important;
}

.bbs-ticket-container {
    border: 1px solid #dccfbb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(43, 43, 43, 0.12) !important;
}

.bbs-ticket-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f170e 100%) !important;
    border-bottom: 5px solid var(--dv-gold) !important;
    color: #fff !important;
}

.bbs-ticket-header .bbs-ticket-title h3,
.bbs-ticket-header .bbs-ticket-title p,
.bbs-ticket-header .bbs-ticket-booking-id span,
.bbs-ticket-header .bbs-ticket-booking-id strong {
    color: #fff !important;
}

.bbs-ticket-header .bbs-ticket-title h3 {
    font-family: var(--bbs-heading-font) !important;
    font-size: 19px !important;
    letter-spacing: 0 !important;
}

.bbs-ticket-header .bbs-ticket-title p,
.bbs-ticket-header .bbs-ticket-booking-id span {
    opacity: 0.9 !important;
}

.bbs-ticket-booking-id {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.bbs-journey-details {
    background: #fbf8f1 !important;
}

.bbs-journey-label,
.bbs-footer-label,
.bbs-point-label {
    color: var(--primary-color) !important;
}

.bbs-journey-city,
.bbs-passenger-name,
.bbs-point-name,
.bbs-footer-value,
.bbs-section-header h4 {
    color: var(--dv-dark) !important;
}

.bbs-journey-time,
.bbs-total,
.bbs-fare-row.bbs-total span {
    color: var(--primary-color) !important;
}

.bbs-journey-line {
    background: #d8c8ad !important;
}

.bbs-journey-line::before {
    background: var(--primary-color) !important;
    border-color: #fbf8f1 !important;
}

.bbs-section-icon {
    background: #fff4d8 !important;
    color: var(--primary-color) !important;
}

.bbs-ticket-section {
    border-bottom-color: #eadfce !important;
}

.bbs-passenger-card-item,
.bbs-fare-breakdown,
.bbs-point-card,
.bbs-ticket-footer {
    background: #fbf8f1 !important;
    border-color: #eadfce !important;
}

.bbs-passenger-seat {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.bbs-paid-badge {
    background: rgba(46, 125, 50, 0.13) !important;
    color: var(--dv-success) !important;
}

.bbs-terms {
    background: #fff5d6 !important;
    border-top: 1px solid rgba(212, 160, 23, 0.28) !important;
}

.bbs-terms-header,
.bbs-terms-list {
    color: var(--primary-color) !important;
}

.bbs-action-buttons .bbs-print-btn,
.bbs-action-buttons .bbs-download-btn,
.bbs-action-buttons .bbs-new-booking-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 10px 22px rgba(139, 30, 18, 0.18) !important;
}

.bbs-action-buttons .bbs-print-btn:hover,
.bbs-action-buttons .bbs-download-btn:hover,
.bbs-action-buttons .bbs-new-booking-btn:hover {
    background: #6f170e !important;
    border-color: #6f170e !important;
    color: #fff !important;
}

@media (max-width: 782px) {
    .bbs-confirmation-success {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .bbs-booking-id-large {
        text-align: left !important;
        white-space: normal !important;
    }
}

/* Last-mile responsive lock: keep every public step inside the viewport. */
.bbs-booking-container,
.bbs-frontend-reports,
.bbs-cancel-wrap,
.bbs-report-shell,
.bbs-report-login {
    width: min(1180px, calc(100vw - 32px)) !important;
    max-width: min(1180px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bbs-search-card,
.bbs-results-card,
.bbs-seat-selection-card,
.bbs-passenger-container,
.bbs-passenger-wrapper,
.bbs-payment-wrapper,
.bbs-confirmation-wrapper {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-next::before {
    content: none !important;
}

@media (max-width: 960px) {
    .bbs-passenger-layout,
    .bbs-passenger-two-columns,
    .bbs-payment-grid,
    .bbs-checkout-summary-row {
        grid-template-columns: 1fr !important;
    }

    .bbs-seat-summary,
    .bbs-seat-selection-card .bbs-seat-summary {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 782px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: min(100%, calc(100vw - 24px)) !important;
    }

    .bbs-search-form,
    .bbs-passenger-layout,
    .bbs-passenger-two-columns,
    .bbs-payment-grid,
    .bbs-checkout-summary-row,
    .bbs-passenger-row,
    .bbs-cancel-grid,
    .bbs-cancel-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .bbs-search-form .bbs-form-group,
    .bbs-search-form .bbs-search-btn,
    .bbs-search-form .bbs-swap-container,
    .bbs-action-buttons a,
    .bbs-action-buttons button,
    .bbs-view-seats-btn,
    .bbs-proceed-btn,
    .bbs-pay-button,
    .bbs-pay-now-btn,
    .bbs-cancel-btn {
        width: 100% !important;
    }

    .bbs-seat-layout-container,
    .bbs-results-table-wrapper,
    .bbs-passenger-table-wrapper,
    .bbs-fare-table-wrapper,
    .bbs-payment-table-wrapper,
    .bbs-frontend-reports .bbs-trip-sheet,
    .bbs-frontend-reports .bbs-gst-report {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bbs-sleeper-decks,
    .bbs-hybrid-decks,
    .bbs-seat-decks,
    .bbs-decks-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 16px)) !important;
        max-width: min(100%, calc(100vw - 16px)) !important;
    }
}

/* Desktop restore after responsive safety pass. */
@media (min-width: 1181px) {
    .bbs-search-card {
        max-width: 1120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bbs-search-form {
        display: grid !important;
        grid-template-columns: minmax(220px, 1fr) 48px minmax(220px, 1fr) minmax(210px, 0.85fr) minmax(230px, 0.95fr) !important;
        gap: 16px !important;
        align-items: end !important;
    }

    .bbs-search-form .bbs-form-group,
    .bbs-search-form .bbs-swap-container,
    .bbs-search-form .bbs-search-btn {
        /*grid-column: auto !important;*/
        width: auto !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .bbs-search-btn {
        white-space: nowrap !important;
        min-width: 220px !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
        line-height: 1.1 !important;
    }

    .bbs-results-card {
        max-width: 1120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bbs-bus-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.8fr) minmax(220px, 0.5fr) !important;
        gap: 28px !important;
        align-items: center !important;
        min-height: 190px !important;
    }
}

@media (min-width: 783px) and (max-width: 1180px) {
    .bbs-search-form {
        grid-template-columns: minmax(220px, 1fr) 48px minmax(220px, 1fr) !important;
        gap: 16px !important;
    }

    .bbs-search-form .bbs-form-group:nth-of-type(3) {
        grid-column: 1 / 3 !important;
    }

    .bbs-search-form .bbs-search-btn {
        grid-column: 3 / 4 !important;
        width: 100% !important;
        white-space: nowrap !important;
    }

    .bbs-bus-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }
}

/* Final responsive UX pass for the complete public booking flow. */
.bbs-booking-container,
.bbs-frontend-reports,
.bbs-cancel-wrap,
.bbs-report-shell,
.bbs-report-login,
.bbs-search-card,
.bbs-results-card,
.bbs-seat-selection-card,
.bbs-passenger-container,
.bbs-passenger-wrapper,
.bbs-payment-wrapper,
.bbs-confirmation-wrapper {
    box-sizing: border-box !important;
    max-width: min(1180px, calc(100vw - 32px)) !important;
}

.bbs-booking-container,
.bbs-frontend-reports,
.bbs-cancel-wrap,
.bbs-report-shell,
.bbs-report-login {
    width: min(1180px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bbs-booking-container *,
.bbs-frontend-reports *,
.bbs-cancel-wrap *,
.bbs-report-shell *,
.bbs-report-login * {
    box-sizing: border-box !important;
}

.bbs-booking-container input,
.bbs-booking-container select,
.bbs-booking-container textarea,
.bbs-booking-container button,
.bbs-frontend-reports input,
.bbs-frontend-reports select,
.bbs-frontend-reports textarea,
.bbs-frontend-reports button,
.bbs-cancel-wrap input,
.bbs-cancel-wrap select,
.bbs-cancel-wrap textarea,
.bbs-cancel-wrap button {
    max-width: 100% !important;
}

.bbs-search-form {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) 48px minmax(180px, 1fr) minmax(170px, 0.85fr) minmax(170px, 0.9fr) !important;
    gap: 16px !important;
    align-items: end !important;
}

.bbs-search-form .bbs-form-group,
.bbs-search-form .bbs-search-btn {
    min-width: 0 !important;
}

.bbs-search-btn,
.bbs-pay-button,
.bbs-proceed-btn,
.bbs-cancel-btn,
.bbs-report-btn,
.bbs-view-seats-btn,
.bbs-action-buttons a,
.bbs-action-buttons button {
    touch-action: manipulation !important;
}

.bbs-results-list,
.bbs-passenger-forms-container {
    min-width: 0 !important;
}

.bbs-bus-card {
    display: grid !important;
    grid-template-columns: 1.6fr 1.8fr 1fr !important;
    gap: 20px !important;
    align-items: center !important;
}

.bbs-seat-layout-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.bbs-seat-decks,
.bbs-sleeper-decks,
.bbs-hybrid-decks,
.bbs-decks-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    max-width: 100% !important;
}

.bbs-sleeper-deck,
.bbs-hybrid-deck,
.bbs-seat-deck,
.bbs-deck-card {
    min-width: 0 !important;
    max-width: 100% !important;
}

.bbs-seat-summary,
.bbs-seat-selection-card .bbs-seat-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto) !important;
    gap: 18px !important;
    align-items: center !important;
}

.bbs-passenger-layout,
.bbs-passenger-two-columns,
.bbs-payment-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.bbs-checkout-summary-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.bbs-passenger-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.45fr) minmax(180px, 0.75fr) !important;
    gap: 14px !important;
}

.bbs-passenger-row .bbs-form-group,
.bbs-passenger-row .bbs-form-group.full-width {
    min-width: 0 !important;
}

.bbs-fare-breakup-card,
.bbs-route-summary-card,
.bbs-summary-card,
.bbs-payment-card {
    width: 100% !important;
    min-width: 0 !important;
}

.bbs-confirmation-success,
.bbs-ticket-header,
.bbs-journey-details,
.bbs-ticket-footer,
.bbs-action-buttons {
    max-width: 100% !important;
}

.bbs-ticket-header,
.bbs-ticket-footer,
.bbs-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.bbs-action-buttons {
    justify-content: center !important;
}

.bbs-cancel-grid,
.bbs-cancel-summary,
.bbs-report-filters,
.bbs-report-actions,
.bbs-report-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 14px !important;
}

.bbs-results-table-wrapper,
.bbs-passenger-table-wrapper,
.bbs-fare-table-wrapper,
.bbs-payment-table-wrapper,
.bbs-frontend-reports .bbs-trip-sheet,
.bbs-frontend-reports .bbs-gst-report {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

#ui-datepicker-div {
    z-index: 999999 !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-next::before {
    content: none !important;
}

@media (max-width: 1180px) {
    .bbs-search-form {
        grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) !important;
    }

    .bbs-search-form .bbs-form-group:nth-of-type(3),
    .bbs-search-form .bbs-search-btn {
        grid-column: span 1 !important;
    }

    .bbs-search-form .bbs-search-btn {
        grid-column: 1 / -1 !important;
    }

    .bbs-bus-card {
        grid-template-columns: minmax(0, 1fr) minmax(170px, auto) !important;
    }
}

@media (max-width: 960px) {
    .bbs-passenger-layout,
    .bbs-passenger-two-columns,
    .bbs-payment-grid,
    .bbs-checkout-summary-row {
        grid-template-columns: 1fr !important;
    }

    .bbs-payment-right,
    .bbs-passenger-right {
        position: static !important;
        top: auto !important;
    }

    .bbs-seat-summary,
    .bbs-seat-selection-card .bbs-seat-summary {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .bbs-summary-right,
    .bbs-seat-selection-card .bbs-summary-right {
        align-items: stretch !important;
        text-align: left !important;
    }

    .bbs-summary-right .bbs-proceed-btn,
    .bbs-seat-selection-card .bbs-proceed-btn {
        width: 100% !important;
    }
}

@media (max-width: 782px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: min(100%, calc(100vw - 24px)) !important;
    }

    .bbs-search-card,
    .bbs-results-card,
    .bbs-seat-selection-card,
    .bbs-passenger-container,
    .bbs-passenger-wrapper,
    .bbs-payment-wrapper,
    .bbs-confirmation-wrapper {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .bbs-search-form {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bbs-search-form .bbs-form-group,
    .bbs-search-form .bbs-search-btn,
    .bbs-search-form .bbs-swap-container {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .bbs-search-form .bbs-swap-container {
        order: 2 !important;
        justify-content: center !important;
        margin: -4px 0 !important;
    }

    .bbs-bus-card {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .bbs-bus-card .bbs-view-seats-btn,
    .bbs-bus-card button,
    .bbs-bus-card a.button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .bbs-seat-legend {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bbs-seat-decks,
    .bbs-sleeper-decks,
    .bbs-hybrid-decks,
    .bbs-decks-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 18px !important;
    }

    .bbs-sleeper-deck,
    .bbs-hybrid-deck,
    .bbs-seat-deck,
    .bbs-deck-card {
        width: 100% !important;
    }

    .bbs-passenger-row {
        grid-template-columns: 1fr !important;
    }

    .bbs-ticket-header,
    .bbs-ticket-footer,
    .bbs-journey-details {
        display: grid !important;
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .bbs-action-buttons a,
    .bbs-action-buttons button {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 16px)) !important;
        max-width: min(100%, calc(100vw - 16px)) !important;
    }

    .bbs-search-card,
    .bbs-results-card,
    .bbs-seat-selection-card,
    .bbs-passenger-container,
    .bbs-passenger-wrapper,
    .bbs-payment-wrapper,
    .bbs-confirmation-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
        border-radius: 10px !important;
    }

    .bbs-search-card h2,
    .bbs-results-header h2,
    .bbs-seat-selection-card h2,
    .bbs-passenger-header h2,
    .bbs-payment-header h2,
    .bbs-confirmation-success h2 {
        font-size: clamp(22px, 7vw, 30px) !important;
        line-height: 1.15 !important;
    }

    .bbs-seat {
        width: 34px !important;
        min-width: 34px !important;
        height: 50px !important;
    }

    .bbs-seat.seat-seater,
    .bbs-seat.seat-semi-sleeper {
        height: 38px !important;
    }

    .bbs-seat-row,
    .bbs-sleeper-seat-grid,
    .bbs-hybrid-seat-grid {
        gap: 6px !important;
    }
}

/* Utility Classes */
.bbs-search-btn:hover,
.bbs-search-btn:active,
.bbs-search-btn:focus {
    color: #fff !important;
}

.arrival .date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.bbs-ticket-actions {
	display: none;
}



/* ============================================
   PRINT STYLES - Professional Ticket Layout
   ============================================ */
@media print {
    /* Hide non-printable elements */
    .bbs-action-buttons,
    .bbs-confirmation-success,
    .bbs-back-button,
    .bbs-search-card,
    .bbs-results-card,
    .bbs-seat-selection-card,
    .bbs-payment-wrapper,
    .bbs-passenger-container,
    button:not(.no-print),
    .no-print {
        display: none !important;
    }
    
    /* Show ticket container */
    .bbs-ticket-container {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Ensure colors print */
    .bbs-ticket-header {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    }
    
    .bbs-seat-number-badge,
    .bbs-paid-status,
    .next-day-badge {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Page break control */
    .bbs-ticket-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Ensure full width on print */
    body {
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .bbs-confirmation-wrapper {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
}


/* Seat Availability Status Colors */
.seat-availability.seat-available {
    color: #4caf50;
}

.seat-availability.seat-filling {
    color: #ff9800;
    font-weight: 600;
    animation: pulseWarning 1s infinite;
}

.seat-availability.seat-soldout {
    color: #f44336;
    font-weight: 600;
}

@keyframes pulseWarning {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Disabled View Seats Button */
.view-seats-btn:disabled {
    background: #e0e0e0 !important;
    border: none !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

.view-seats-btn:disabled:hover {
    background: #e0e0e0 !important;
    transform: none !important;
    box-shadow: none !important;
}


/* Swap Icon Styles */
.bbs-swap-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 -18px !important;
    height: 54px !important;
    position: relative !important;
    z-index: 10 !important;
}

.bbs-swap-icon {
    width: 36px !important;
    height: 36px !important;
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

.bbs-swap-icon:hover,
.bbs-swap-icon:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.bbs-swap-icon.rotating {
    transform: rotate(180deg) scale(1.1) !important;
}

.bbs-swap-icon svg {
    stroke: currentColor !important;
}


.bbs-form-group {
    flex: 1;
    position: relative;
}

/* Input Fields with Icons */
.bbs-input-with-icon {
    position: relative;
    width: 100%;
}

.bbs-input-icon,
.bbs-input-icon-svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    stroke: var(--primary-color);
    font-size: 16px;
    z-index: 5;
    pointer-events: none;
}

.bbs-input-with-icon .bbs-form-input {
    padding-left: 48px !important;
    padding-right: 44px !important;
}

.bbs-input-with-icon .bbs-date-input {
    padding-right: 16px !important;
    cursor: pointer;
}

.bbs-city-dropdown-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #d45109 !important;
    box-shadow: none !important;
    filter: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.bbs-city-dropdown-trigger:hover,
.bbs-city-dropdown-trigger:focus {
    background: transparent !important;
    color: #d45109 !important;
    outline: none;
    box-shadow: none !important;
    filter: none !important;
}

.bbs-city-dropdown-arrow {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    border: 0 !important;
    color: #d45109 !important;
    transform: none !important;
    pointer-events: none;
    fill: currentColor !important;
}

#ui-datepicker-div {
    width: 330px;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18) !important;
    padding: 0 0 12px !important;
    overflow: hidden;
    z-index: 100000 !important;
    font-family: inherit;
}

#ui-datepicker-div .ui-datepicker-header {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    margin: 0 !important;
    padding: 0 16px !important;
    background: #d45109 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
}

#ui-datepicker-div .ui-datepicker-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: #fff !important;
    line-height: 58px;
    margin: 0 46px !important;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    position: absolute;
    top: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px;
    height: 58px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    overflow: visible !important;
}

#ui-datepicker-div .ui-datepicker-prev {
    left: 8px !important;
}

#ui-datepicker-div .ui-datepicker-next {
    right: 8px !important;
}

#ui-datepicker-div .ui-datepicker-prev span,
#ui-datepicker-div .ui-datepicker-next span,
#ui-datepicker-div .ui-icon {
    display: none !important;
    background-image: none !important;
}

#ui-datepicker-div .bbs-datepicker-nav-icon {
    display: block !important;
    width: 13px !important;
    height: 22px !important;
    color: #fff !important;
    fill: currentColor !important;
    transform: none !important;
    pointer-events: none;
    opacity: 1 !important;
}

#ui-datepicker-div .ui-datepicker-prev.ui-state-disabled,
#ui-datepicker-div .ui-datepicker-next.ui-state-disabled {
    opacity: 0.45 !important;
}

#ui-datepicker-div .ui-state-disabled .bbs-datepicker-nav-icon {
    opacity: 0.45;
}

#ui-datepicker-div table {
    width: calc(100% - 24px) !important;
    margin: 12px !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
    background: transparent !important;
}

#ui-datepicker-div th,
#ui-datepicker-div td {
    text-align: center;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#ui-datepicker-div th {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    height: 26px;
}

#ui-datepicker-div td.ui-state-disabled,
#ui-datepicker-div td.ui-datepicker-unselectable {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

#ui-datepicker-div td a,
#ui-datepicker-div td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 700;
}

#ui-datepicker-div td.bbs-operational-date a {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #047857 !important;
}

#ui-datepicker-div td.bbs-operational-date a:hover {
    background: #10b981 !important;
    color: #fff !important;
}

#ui-datepicker-div td.bbs-non-operational-date span,
#ui-datepicker-div td.ui-datepicker-unselectable span {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#ui-datepicker-div td.ui-datepicker-other-month span,
#ui-datepicker-div td.ui-datepicker-other-month a {
    background: #f8fafc !important;
    color: #cbd5e1 !important;
}

#ui-datepicker-div td.ui-datepicker-current-day a,
#ui-datepicker-div td .ui-state-active {
    background: #10b981 !important;
    color: #fff !important;
}

/* Responsive adjustments for swap icon are now unified under the 992px media query */


/* ============================================
   DAKSHIN VAIBHAV BRAND SYSTEM OVERRIDES
   Client palette: Primary #8B1E12, Gold #D4A017, Ivory #F6F1E8
   ============================================ */
.bbs-booking-container {
    color: var(--dv-dark);
}

.bbs-booking-container h1,
.bbs-booking-container h2,
.bbs-booking-container h3,
.bbs-booking-container h4,
.bbs-booking-container h5,
.bbs-booking-container h6,
.bbs-search-card h2,
.bbs-results-header h2,
.bbs-selection-header h2,
.bbs-confirmation-success h2,
.bus-name,
.final-fare,
.bbs-summary-title,
.bbs-card-title,
.bbs-ticket-header h3 {
    font-family: var(--bbs-heading-font) !important;
    color: var(--dv-dark);
    letter-spacing: 0;
}

.bbs-search-card {
    background: linear-gradient(135deg, #8B1E12 0%, #6f170e 100%) !important;
    border: 1px solid rgba(212, 160, 23, 0.32);
    box-shadow: 0 18px 44px rgba(139, 30, 18, 0.18);
}

.bbs-search-card h2,
.bbs-search-card > p {
    color: #fff !important;
}

.bbs-search-form,
.bbs-results-card,
.bbs-seat-selection-card,
.bbs-passenger-card,
.bbs-payment-wrapper,
.bbs-confirmation-wrapper,
.bbs-ticket-container,
.bbs-dashboard-card {
    border-color: var(--border-color) !important;
}

.bbs-form-input,
.bbs-input,
.bbs-select,
.bbs-textarea,
.bbs-form-group input,
.bbs-form-group select {
    border-color: #ded4c5 !important;
    color: var(--dv-dark) !important;
    background: #fff !important;
}

.bbs-form-input:focus,
.bbs-input:focus,
.bbs-select:focus,
.bbs-textarea:focus,
.bbs-form-group input:focus,
.bbs-form-group select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(139, 30, 18, 0.13) !important;
}

.bbs-search-btn,
.view-seats-btn,
.bbs-proceed-btn,
.bbs-pay-btn,
.bbs-download-ticket,
.bbs-print-ticket,
.bbs-book-another,
#proceed_to_payment,
#bbs_pay_now,
.bbs-back-button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 22px rgba(139, 30, 18, 0.18) !important;
}

.bbs-search-btn:hover,
.view-seats-btn:hover,
.bbs-proceed-btn:hover,
.bbs-pay-btn:hover,
.bbs-download-ticket:hover,
.bbs-print-ticket:hover,
.bbs-book-another:hover,
#proceed_to_payment:hover,
#bbs_pay_now:hover,
.bbs-back-button:hover {
    background: #6f170e !important;
    border-color: #6f170e !important;
    color: #fff !important;
}

.bus-type,
.bus-type-label,
.seat-availability-badge.seat-available,
.bbs-paid-status,
.bbs-status-paid {
    background: rgba(46, 125, 50, 0.12) !important;
    color: var(--dv-success) !important;
}

.fare-box,
.bbs-fare-summary,
.bbs-important-instructions {
    background: #fff8e5 !important;
    border-color: rgba(212, 160, 23, 0.35) !important;
}

.final-fare,
.bbs-total-row,
.bbs-summary-total,
.bbs-journey-time,
.bbs-input-icon,
.bbs-input-icon-svg,
.bbs-city-dropdown-trigger,
.bbs-city-dropdown-arrow {
    color: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

.bbs-seat.available {
    background: #f7fbf4 !important;
    border-color: var(--dv-success) !important;
    color: #1b5e20 !important;
}

.bbs-seat.selected {
    background: #fff7e0 !important;
    border-color: var(--dv-gold) !important;
    color: var(--primary-color) !important;
}

.bbs-seat.booked {
    background: #eee8de !important;
    border-color: #c9beb0 !important;
    color: #7a7167 !important;
}

.bbs-seat.booked-male,
.bbs-seat.allowed-male {
    border-color: #2563eb !important;
}

.bbs-seat.booked-female,
.bbs-seat.allowed-female {
    border-color: #ec4899 !important;
}

.bbs-sleeper-deck,
.bbs-hybrid-deck,
.bbs-seat-layout-container {
    background: #fbf8f1 !important;
    border-color: #eadfce !important;
}

.bbs-sleeper-deck,
.bbs-hybrid-deck {
    background: #fff !important;
}

.bbs-driver-position {
    background: #f9f4ea !important;
    border-color: #d7c8b5 !important;
    color: var(--dv-dark) !important;
}

.bbs-confirmation-success,
.bbs-success-banner {
    background: linear-gradient(135deg, var(--dv-success) 0%, #216326 100%) !important;
}

#ui-datepicker-div .ui-datepicker-header {
    background: var(--primary-color) !important;
}

#ui-datepicker-div td.bbs-operational-date a,
#ui-datepicker-div td.ui-datepicker-current-day a,
#ui-datepicker-div td .ui-state-active {
    background: rgba(46, 125, 50, 0.16) !important;
    color: var(--dv-success) !important;
}

#ui-datepicker-div td.bbs-operational-date a:hover,
#ui-datepicker-div td .ui-state-active {
    background: var(--dv-success) !important;
    color: #fff !important;
}

.bbs-autocomplete-item:hover {
    background: #fff8e5 !important;
    border-left-color: var(--primary-color) !important;
}

@media (max-width: 992px) {
    .bbs-booking-container {
        padding: 14px;
    }

    .bbs-search-card {
        padding: 28px 18px !important;
        border-radius: 18px !important;
        margin-bottom: 26px !important;
    }

    .bbs-search-card h2 {
        font-size: 34px !important;
        line-height: 1.15 !important;
    }

    .bbs-search-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .bbs-form-group,
    .bbs-search-form .bbs-form-group {
        min-width: 0 !important;
        width: 100% !important;
    }

    .bbs-swap-container {
        margin: -6px 0 !important;
        height: 36px !important;
    }

    .bbs-search-btn {
        width: 100% !important;
    }

    .bbs-results-header,
    .bbs-selection-header,
    .bbs-payment-header {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .bbs-bus-card,
    .timing-wrapper,
    .bbs-payment-content,
    .bbs-passenger-layout {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .bus-card-right {
        text-align: left !important;
        width: 100% !important;
    }

    .bbs-sleeper-decks,
    .bbs-hybrid-decks {
        grid-template-columns: 1fr !important;
        max-width: 360px !important;
        gap: 14px !important;
    }

    .bbs-seat-layout-container {
        padding: 16px 10px 20px !important;
    }
}

@media (max-width: 640px) {
    .bbs-search-card h2 {
        font-size: 28px !important;
    }

    .bbs-search-card > p,
    .bbs-form-group label,
    .bbs-action-desc {
        font-size: 12px !important;
    }

    .bbs-form-input,
    .bbs-input,
    .bbs-select,
    .bbs-search-btn {
        min-height: 50px !important;
        font-size: 14px !important;
    }

    .bbs-seat-selection-card,
    .bbs-results-card,
    .bbs-passenger-card,
    .bbs-payment-wrapper,
    .bbs-confirmation-wrapper {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .bbs-action-buttons,
    .bbs-ticket-actions,
    .bbs-selected-footer,
    .bbs-payment-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .bbs-action-buttons a,
    .bbs-action-buttons button,
    .bbs-ticket-actions a,
    .bbs-ticket-actions button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .bbs-table,
    .bbs-table tbody,
    .bbs-table tr,
    .bbs-table td {
        display: block !important;
        width: 100% !important;
    }
}

/* Complete responsive hardening for all frontend booking screens */
.bbs-booking-container,
.bbs-booking-container *,
.bbs-frontend-reports,
.bbs-frontend-reports * {
    max-width: 100%;
}

.bbs-booking-container img,
.bbs-frontend-reports img {
    height: auto;
}

.bbs-booking-container table,
.bbs-frontend-reports table {
    word-break: normal;
}

.bbs-table,
.bbs-passenger-table,
.bbs-fare-table,
.bbs-payment-table,
.bbs-trip-passenger-table,
.bbs-frontend-reports .widefat {
    min-width: 680px;
}

.bbs-table-wrapper,
.bbs-results-table-wrapper,
.bbs-passenger-table-wrapper,
.bbs-fare-table-wrapper,
.bbs-trip-table-wrapper,
.bbs-frontend-reports .bbs-trip-sheet,
.bbs-frontend-reports .bbs-gst-report,
.bbs-ticket-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bbs-form-input,
.bbs-input,
.bbs-select,
.bbs-city-input,
.bbs-passenger-field input,
.bbs-passenger-field select,
.bbs-contact-field input,
.bbs-contact-field select,
.bbs-payment-field input,
.bbs-payment-field select,
.bbs-report-field input,
.bbs-report-field select {
    max-width: 100%;
}

@media (max-width: 1180px) {
    .bbs-booking-container {
        width: 100%;
    }

    .bbs-bus-card {
        gap: 18px;
    }

    .bbs-seat-layout-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bbs-sleeper-decks,
    .bbs-hybrid-decks {
        width: max-content;
        min-width: min(100%, 620px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 782px) {
    .bbs-booking-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .bbs-search-card,
    .bbs-results-card,
    .bbs-seat-selection-card,
    .bbs-passenger-card,
    .bbs-payment-wrapper,
    .bbs-confirmation-wrapper,
    .bbs-cancellation-wrapper,
    .bbs-report-shell,
    .bbs-report-login {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bbs-results-header,
    .bbs-selection-header,
    .bbs-passenger-header,
    .bbs-payment-header,
    .bbs-confirmation-header,
    .bbs-report-header {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
    }

    .bbs-results-header h2,
    .bbs-selection-header h2,
    .bbs-passenger-header h2,
    .bbs-payment-header h2,
    .bbs-confirmation-title,
    .bbs-report-header h2 {
        font-size: clamp(24px, 8vw, 34px) !important;
        line-height: 1.15 !important;
    }

    .bbs-back-search,
    .bbs-view-seats-btn,
    .view-seats-btn,
    .bbs-proceed-btn,
    .bbs-pay-now-btn,
    .bbs-report-primary-button,
    .bbs-report-secondary-button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 48px !important;
    }

    .bbs-bus-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding: 18px !important;
    }

    .bus-card-left,
    .bus-card-center,
    .bus-card-right,
    .timing-wrapper,
    .fare-box {
        width: 100% !important;
        min-width: 0 !important;
    }

    .timing-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .route-line,
    .journey-line {
        width: 100% !important;
    }

    .bbs-seat-legend {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: 8px !important;
    }

    .bbs-legend-item {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .bbs-seat-layout-container {
        padding: 14px 8px 18px !important;
    }

    .bbs-sleeper-decks,
    .bbs-hybrid-decks {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 380px !important;
    }

    .bbs-sleeper-deck,
    .bbs-hybrid-deck {
        padding: 12px 10px !important;
        width: 100% !important;
    }

    .bbs-selection-summary,
    .bbs-selected-footer {
        position: sticky;
        bottom: 0;
        z-index: 30;
        margin-left: -16px !important;
        margin-right: -16px !important;
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 -10px 22px rgba(43, 43, 43, 0.12) !important;
    }

    .bbs-selection-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bbs-selected-seats-list {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px !important;
    }

    .bbs-selected-seat-chip {
        flex: 0 0 auto !important;
    }

    .bbs-passenger-layout,
    .bbs-payment-content,
    .bbs-contact-grid,
    .bbs-passenger-row,
    .bbs-passenger-fields,
    .bbs-report-form,
    .bbs-report-form-gst {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bbs-passenger-card,
    .bbs-contact-card,
    .bbs-payment-card,
    .bbs-fare-summary-card {
        width: 100% !important;
    }

    .bbs-confirmation-wrapper,
    .bbs-ticket-container,
    .bbs-ticket-card,
    .bbs-ticket-print-area {
        overflow: hidden !important;
    }

    .bbs-ticket-header,
    .bbs-ticket-footer,
    .bbs-ticket-actions,
    .bbs-journey-row,
    .bbs-report-tabs,
    .bbs-report-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .bbs-journey-point,
    .bbs-journey-arrow {
        width: 100% !important;
        flex: 1 1 auto !important;
        text-align: left !important;
    }

    .bbs-journey-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .bbs-booking-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .bbs-search-card,
    .bbs-results-card,
    .bbs-seat-selection-card,
    .bbs-passenger-card,
    .bbs-payment-wrapper,
    .bbs-confirmation-wrapper {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .bbs-search-card h2 {
        font-size: 25px !important;
    }

    .bbs-search-card > p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .bbs-form-input,
    .bbs-input,
    .bbs-select,
    .bbs-search-btn {
        min-height: 48px !important;
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    .bbs-city-dropdown-trigger,
    .bbs-calendar-trigger {
        right: 10px !important;
    }

    .bbs-swap-container {
        width: 100% !important;
        justify-content: center !important;
    }

    .bbs-swap-btn {
        width: 42px !important;
        height: 42px !important;
    }

    .bbs-seat {
        width: 38px !important;
        min-width: 38px !important;
        height: 54px !important;
        font-size: 10px !important;
    }

    .bbs-seat.seat-seater,
    .bbs-seat.seat-semi-sleeper {
        height: 42px !important;
    }

    .bbs-seat-row {
        gap: 8px !important;
    }

    .bbs-sleeper-seat-grid,
    .bbs-hybrid-seat-grid {
        gap: 8px !important;
    }

    .bbs-gender-badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }

    .bbs-seat-gender-label,
    .bbs-seat-restriction {
        font-size: 7px !important;
    }

    .bbs-total-fare,
    .bbs-summary-total {
        font-size: 18px !important;
    }

    #ui-datepicker-div {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
        max-width: 340px !important;
    }
}
        
/* Final booking confirmation contrast lock */
.bbs-confirmation-wrapper {
    max-width: 980px !important;
    color: var(--dv-dark) !important;
}

.bbs-confirmation-success {
    background: linear-gradient(135deg, #2E7D32 0%, #236527 100%) !important;
    border: 1px solid rgba(46, 125, 50, 0.35) !important;
    border-left: 7px solid var(--dv-gold) !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(46, 125, 50, 0.18) !important;
}

.bbs-confirmation-success .bbs-success-icon {
    background: #fff !important;
    color: var(--dv-success) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
}

.bbs-confirmation-success .bbs-success-kicker,
.bbs-confirmation-success h2,
.bbs-confirmation-success p {
    color: #fff !important;
}

.bbs-confirmation-success .bbs-success-kicker,
.bbs-confirmation-success p {
    opacity: 0.92 !important;
}

.bbs-booking-id-large {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.bbs-booking-id-large span {
    color: var(--primary-color) !important;
}

.bbs-booking-id-large strong {
    color: var(--dv-dark) !important;
}

.bbs-ticket-container {
    border: 1px solid #dccfbb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(43, 43, 43, 0.12) !important;
}

.bbs-ticket-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f170e 100%) !important;
    border-bottom: 5px solid var(--dv-gold) !important;
    color: #fff !important;
}

.bbs-ticket-header .bbs-ticket-title h3,
.bbs-ticket-header .bbs-ticket-title p,
.bbs-ticket-header .bbs-ticket-booking-id span,
.bbs-ticket-header .bbs-ticket-booking-id strong {
    color: #fff !important;
}

.bbs-ticket-header .bbs-ticket-title h3 {
    font-family: var(--bbs-heading-font) !important;
    font-size: 19px !important;
    letter-spacing: 0 !important;
}

.bbs-ticket-header .bbs-ticket-title p,
.bbs-ticket-header .bbs-ticket-booking-id span {
    opacity: 0.9 !important;
}

.bbs-ticket-booking-id {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.bbs-journey-details,
.bbs-passenger-card-item,
.bbs-fare-breakdown,
.bbs-point-card,
.bbs-ticket-footer {
    background: #fbf8f1 !important;
    border-color: #eadfce !important;
}

.bbs-journey-label,
.bbs-footer-label,
.bbs-point-label,
.bbs-section-icon {
    color: var(--primary-color) !important;
}

.bbs-journey-city,
.bbs-passenger-name,
.bbs-point-name,
.bbs-footer-value,
.bbs-section-header h4 {
    color: var(--dv-dark) !important;
}

.bbs-journey-time,
.bbs-total,
.bbs-fare-row.bbs-total span {
    color: var(--primary-color) !important;
}

.bbs-journey-line {
    background: #d8c8ad !important;
}

.bbs-journey-line::before {
    background: var(--primary-color) !important;
    border-color: #fbf8f1 !important;
}

.bbs-section-icon {
    background: #fff4d8 !important;
}

.bbs-ticket-section {
    border-bottom-color: #eadfce !important;
}

.bbs-passenger-seat {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.bbs-paid-badge {
    background: rgba(46, 125, 50, 0.13) !important;
    color: var(--dv-success) !important;
}

.bbs-terms {
    background: #fff5d6 !important;
    border-top: 1px solid rgba(212, 160, 23, 0.28) !important;
}

.bbs-terms-header,
.bbs-terms-list {
    color: var(--primary-color) !important;
}

.bbs-action-buttons .bbs-print-btn,
.bbs-action-buttons .bbs-download-btn,
.bbs-action-buttons .bbs-new-booking-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 10px 22px rgba(139, 30, 18, 0.18) !important;
}

.bbs-action-buttons .bbs-print-btn:hover,
.bbs-action-buttons .bbs-download-btn:hover,
.bbs-action-buttons .bbs-new-booking-btn:hover {
    background: #6f170e !important;
    border-color: #6f170e !important;
    color: #fff !important;
}

@media (max-width: 782px) {
    .bbs-confirmation-success {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .bbs-booking-id-large {
        text-align: left !important;
        white-space: normal !important;
    }
}

/* True final responsive lock: keep public booking pages inside the viewport. */
.bbs-booking-container,
.bbs-frontend-reports,
.bbs-cancel-wrap,
.bbs-report-shell,
.bbs-report-login {
    width: min(1180px, calc(100vw - 32px)) !important;
    max-width: min(1180px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bbs-search-card,
.bbs-results-card,
.bbs-seat-selection-card,
.bbs-passenger-container,
.bbs-passenger-wrapper,
.bbs-payment-wrapper,
.bbs-confirmation-wrapper {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-header a.ui-datepicker-next::before {
    content: none !important;
}

@media (max-width: 960px) {
    .bbs-passenger-layout,
    .bbs-passenger-two-columns,
    .bbs-payment-grid,
    .bbs-checkout-summary-row,
    .bbs-seat-summary,
    .bbs-seat-selection-card .bbs-seat-summary {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 782px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: min(100%, calc(100vw - 24px)) !important;
    }

    .bbs-search-form,
    .bbs-passenger-layout,
    .bbs-passenger-two-columns,
    .bbs-payment-grid,
    .bbs-checkout-summary-row,
    .bbs-passenger-row,
    .bbs-cancel-grid,
    .bbs-cancel-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .bbs-search-form .bbs-form-group,
    .bbs-search-form .bbs-search-btn,
    .bbs-search-form .bbs-swap-container,
    .bbs-action-buttons a,
    .bbs-action-buttons button,
    .bbs-view-seats-btn,
    .bbs-proceed-btn,
    .bbs-pay-button,
    .bbs-pay-now-btn,
    .bbs-cancel-btn {
        width: 100% !important;
    }

    .bbs-seat-layout-container,
    .bbs-results-table-wrapper,
    .bbs-passenger-table-wrapper,
    .bbs-fare-table-wrapper,
    .bbs-payment-table-wrapper,
    .bbs-frontend-reports .bbs-trip-sheet,
    .bbs-frontend-reports .bbs-gst-report {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bbs-sleeper-decks,
    .bbs-hybrid-decks,
    .bbs-seat-decks,
    .bbs-decks-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .bbs-booking-container,
    .bbs-frontend-reports,
    .bbs-cancel-wrap,
    .bbs-report-shell,
    .bbs-report-login {
        width: min(100%, calc(100vw - 16px)) !important;
        max-width: min(100%, calc(100vw - 16px)) !important;
    }
}

/* Final desktop layout restore for search and available buses. */
@media (min-width: 1181px) {
    .bbs-search-card,
    .bbs-results-card {
        max-width: 1120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bbs-search-form {
        display: grid !important;
        grid-template-columns: minmax(220px, 1fr) 48px minmax(220px, 1fr) minmax(220px, 1fr) !important;
        gap: 16px 18px !important;
        align-items: end !important;
    }

    .bbs-search-form .bbs-form-group,
    .bbs-search-form .bbs-swap-container {
        grid-column: auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .bbs-search-btn {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: auto !important;
        min-width: 220px !important;
        max-width: 280px !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .bbs-bus-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.8fr) minmax(220px, 0.5fr) !important;
        gap: 28px !important;
        align-items: center !important;
        min-height: 190px !important;
    }
}

@media (min-width: 783px) and (max-width: 1180px) {
    .bbs-search-form {
        display: grid !important;
        grid-template-columns: minmax(220px, 1fr) 48px minmax(220px, 1fr) !important;
        gap: 16px !important;
        align-items: end !important;
    }

    .bbs-search-form .bbs-form-group:nth-of-type(3) {
        grid-column: 1 / 3 !important;
    }

    .bbs-search-form .bbs-search-btn {
        grid-column: 3 / 4 !important;
        width: 100% !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }

    .bbs-bus-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }
}


/* ==========================================================================
   CUSTOM SEAT LAYOUT AND ICON STYLING OVERRIDES (Vertical Sleeper & Clean Seater)
   ========================================================================== */

/* 1. STATE COLORS & SELECTORS SPECIFICITY FIXES */

/* Available state: White background, green border, green text */
.bbs-seat.available,
.bbs-seat.seat-semi-sleeper.available,
.bbs-seat.seat-seater.available,
.bbs-seat.seat-sleeper.available,
.bbs-seat.seat-hybrid-sleeper.available,
.bbs-seat.seat-hybrid-seater.available {
    background: #ffffff !important;
    border-color: #16a34a !important;
    color: #16a34a !important;
}

.bbs-seat.available::after,
.bbs-seat.available::before {
    background: transparent !important;
}

.bbs-seat.available:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(22, 163, 74, 0.15) !important;
    background: #f0fdf4 !important;
}

/* Booked state: Solid grey background (#4b5563), white text/border */
.bbs-seat.booked,
.bbs-seat.seat-semi-sleeper.booked,
.bbs-seat.seat-seater.booked,
.bbs-seat.seat-sleeper.booked,
.bbs-seat.seat-hybrid-sleeper.booked,
.bbs-seat.seat-hybrid-seater.booked {
    background: #4b5563 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
}

.bbs-seat.booked::after,
.bbs-seat.booked::before {
    background: transparent !important;
}

/* Selected state: Solid dark red background (#991b1b), white text/border */
.bbs-seat.selected,
.bbs-seat.seat-semi-sleeper.selected,
.bbs-seat.seat-seater.selected,
.bbs-seat.seat-sleeper.selected,
.bbs-seat.seat-hybrid-sleeper.selected,
.bbs-seat.seat-hybrid-seater.selected {
    background: #991b1b !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
}

.bbs-seat.selected::after,
.bbs-seat.selected::before {
    background: transparent !important;
}

/* Allowed Gender States */
.bbs-seat.available.allowed-male {
    border-style: dashed !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    color: #2563eb !important;
}
.bbs-seat.available.allowed-female {
    border-style: dashed !important;
    border-color: #ec4899 !important;
    background: #ffffff !important;
    color: #ec4899 !important;
}
.bbs-seat.selected.allowed-male {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.bbs-seat.selected.allowed-female {
    background: #ec4899 !important;
    border-color: #ec4899 !important;
    color: #ffffff !important;
}

/* Inline SVG Seat Path Colors for each state */
/* Available State */
.bbs-seat.available .bbs-svg-bg {
    fill: #ffffff !important;
}
.bbs-seat.available .bbs-svg-outline {
    fill: #16a34a !important;
}

/* Selected State */
.bbs-seat.selected .bbs-svg-bg {
    fill: #991b1b !important;
}
.bbs-seat.selected .bbs-svg-outline {
    fill: #ffffff !important;
}

/* Booked State */
.bbs-seat.booked .bbs-svg-bg {
    fill: #4b5563 !important;
}
.bbs-seat.booked .bbs-svg-outline {
    fill: #ffffff !important;
}

/* Allowed Male */
.bbs-seat.allowed-male .bbs-svg-bg {
    fill: #ffffff !important;
}
.bbs-seat.allowed-male .bbs-svg-outline {
    fill: #2563eb !important;
}

/* Allowed Female */
.bbs-seat.allowed-female .bbs-svg-bg {
    fill: #ffffff !important;
}
.bbs-seat.allowed-female .bbs-svg-outline {
    fill: #ec4899 !important;
}

/* Booked Male */
.bbs-seat.booked-male .bbs-svg-bg {
    fill: #eff6ff !important;
}
.bbs-seat.booked-male .bbs-svg-outline {
    fill: #2563eb !important;
}

/* Booked Female */
.bbs-seat.booked-female .bbs-svg-bg {
    fill: #fdf2f8 !important;
}
.bbs-seat.booked-female .bbs-svg-outline {
    fill: #ec4899 !important;
}

/* 2. SLEEPER SEATS STYLING (Vertical Layout & Scaled Up) */

/* Base container for vertical sleepers */
.bbs-seat.seat-sleeper {
    width: 46px !important;
    height: 86px !important;
    border-radius: 8px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
}

/* Ensure vertical dimensions in all decks */
.bbs-sleeper-deck .bbs-seat.seat-sleeper,
.bbs-hybrid-deck .bbs-seat.seat-sleeper,
.bbs-seat.seat-hybrid-sleeper {
    width: 46px !important;
    height: 86px !important;
}

/* Disable pseudo elements inside sleeper seats */
.bbs-seat.seat-sleeper::before,
.bbs-seat.seat-sleeper::after,
.bbs-seat.seat-hybrid-sleeper::before,
.bbs-seat.seat-hybrid-sleeper::after {
    content: none !important;
    display: none !important;
}

/* Pillow element at the top of the vertical sleeper seat */
.bbs-seat-icon.sleeper-berth-icon {
    order: 1 !important;
    width: 32px !important;
    height: 10px !important;
    border-radius: 3px !important;
    border: 1.5px solid currentColor !important;
    background: transparent !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    opacity: 0.85 !important;
    flex: 0 0 auto !important;
}

/* Seat number centered below the pillow */
.bbs-seat.seat-sleeper .bbs-seat-number,
.bbs-seat.seat-hybrid-sleeper .bbs-seat-number {
    order: 2 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    text-align: center !important;
}


/* 3. SEATER SEATS STYLING (Scaled Up Inline SVG Layout) */

/* Seater container style */
.bbs-seat.seat-semi-sleeper,
.bbs-seat.seat-seater,
.bbs-hybrid-deck .bbs-seat.seat-semi-sleeper,
.bbs-hybrid-deck .bbs-seat.seat-hybrid-seater {
    width: 54px !important;
    height: 58px !important;
    border-radius: 8px !important; /* Standard clean round rectangle */
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
}

/* Reset default cushion/headrest drawing for seater/semi-sleeper */
.bbs-seat.seat-semi-sleeper::before,
.bbs-seat.seat-semi-sleeper::after,
.bbs-seat.seat-seater::before,
.bbs-seat.seat-seater::after,
.bbs-seat.seat-hybrid-seater::before,
.bbs-seat.seat-hybrid-seater::after,
.bbs-hybrid-deck .bbs-seat.seat-semi-sleeper::before,
.bbs-hybrid-deck .bbs-seat.seat-semi-sleeper::after,
.bbs-hybrid-deck .bbs-seat.seat-hybrid-seater::before,
.bbs-hybrid-deck .bbs-seat.seat-hybrid-seater::after {
    content: none !important;
    display: none !important;
}

/* Inline SVG Seat Icon Style */
.bbs-seat-svg-icon {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    margin-bottom: 4px !important;
    flex: 0 0 auto !important;
}

/* Center seat number in seater */
.bbs-seat.seat-semi-sleeper .bbs-seat-number,
.bbs-seat.seat-seater .bbs-seat-number,
.bbs-hybrid-deck .bbs-seat.seat-semi-sleeper .bbs-seat-number,
.bbs-hybrid-deck .bbs-seat.seat-hybrid-seater .bbs-seat-number {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    color: inherit !important;
    z-index: 2 !important;
}

/* Display empty icon element with the new SVG mask */
.bbs-seat-icon.seater-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-color: currentColor !important;
    -webkit-mask-image: url('https://preprod.dakshinvaibhav.in/wp-content/uploads/2026/07/seater_available.svg') !important;
    mask-image: url('https://preprod.dakshinvaibhav.in/wp-content/uploads/2026/07/seater_available.svg') !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    margin-bottom: 2px !important;
    flex: 0 0 auto !important;
}


/* 4. DRIVER POSITION & STEERING WHEEL STYLING */
.bbs-driver-position {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important; /* Match seater width */
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 auto !important;
}
.bbs-sleeper-deck .bbs-driver-position,
.bbs-hybrid-deck .bbs-driver-position {
    width: 46px !important; /* Match sleeper width */
    min-height: 46px !important;
}
.bbs-driver-steering {
    width: 36px !important;
    height: 36px !important;
    opacity: 0.65 !important;
}
.bbs-driver-spacer {
    width: 54px !important;
    height: 54px !important;
}
.bbs-sleeper-deck .bbs-driver-spacer,
.bbs-hybrid-deck .bbs-driver-spacer {
    width: 46px !important;
}


/* 5. PERFECT GRID ALIGNMENT: AISLE WIDTH MATCHES SEAT WIDTH */
.bbs-seat-grid .bbs-aisle {
    width: 54px !important; /* Matches seater seat width */
    position: relative !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
}

/* Sleeper Aisle Width */
.bbs-sleeper-seat-grid .bbs-aisle {
    width: 46px !important; /* Matches sleeper seat width */
}

/* Hybrid Deck Aisle Widths */
.bbs-hybrid-deck-upper .bbs-aisle {
    width: 46px !important;
}
.bbs-hybrid-deck-lower .bbs-aisle {
    width: 54px !important;
}


/* 6. LEGEND COLORS ALIGNMENT */
.bbs-legend-color.seat-available {
    background: #ffffff !important;
    border-color: #16a34a !important;
}
.bbs-legend-color.seat-selected {
    background: #991b1b !important;
    border-color: #991b1b !important;
}
.bbs-legend-color.seat-booked {
    background: #4b5563 !important;
    border-color: #4b5563 !important;
}
.bbs-legend-color.seat-booked-male {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}
.bbs-legend-color.seat-booked-female {
    background: #fdf2f8 !important;
    border-color: #ec4899 !important;
}
.bbs-legend-color.seat-female-only {
    background: #ffffff !important;
    border-color: #ec4899 !important;
    border-style: dashed !important;
}
.bbs-legend-color.seat-male-only {
    background: #ffffff !important;
    border-color: #2563eb !important;
    border-style: dashed !important;
}


/* ==========================================================================
   TARGETED SCREENSHOT UI & COLOR FIXES (Buttons, Hover, Remove Seat & Focus)
   ========================================================================== */

/* 1. Back Buttons (← Back to Seats & ← Back to Results) */
.bbs-back-btn,
#bbs-back-seats,
.bbs-back-search,
.bbs-back-button {
    background: #f6f1e8 !important;
    color: #8B1E12 !important;
    border: 1.5px solid #e2d8c7 !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.bbs-back-btn:hover,
#bbs-back-seats:hover,
.bbs-back-search:hover,
.bbs-back-button:hover,
.bbs-back-btn:focus,
#bbs-back-seats:focus,
.bbs-back-search:focus,
.bbs-back-button:focus {
    background: #8B1E12 !important;
    color: #ffffff !important;
    border-color: #8B1E12 !important;
    box-shadow: 0 4px 12px rgba(139, 30, 18, 0.2) !important;
    outline: none !important;
}

/* 2. Seat Chip Close / Remove Button */
.bbs-remove-seat {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    margin-left: 6px !important;
    padding: 0 !important;
}

.bbs-remove-seat:hover,
.bbs-remove-seat:focus {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
    outline: none !important;
}

/* 3. Primary Action Buttons (Proceed / Pay / Search) */
.bbs-proceed-btn,
#proceed_to_payment,
#bbs_pay_now {
    background: #8B1E12 !important;
    color: #ffffff !important;
    border: 1px solid #70170d !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(139, 30, 18, 0.16) !important;
    outline: none !important;
}

.bbs-proceed-btn:hover,
#proceed_to_payment:hover,
#bbs_pay_now:hover,
.bbs-proceed-btn:focus,
#proceed_to_payment:focus,
#bbs_pay_now:focus {
    background: #6f170e !important;
    border-color: #6f170e !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(111, 23, 14, 0.25) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

/* 4. Legend Color Correction */
.bbs-legend-color.seat-available {
    background: #ffffff !important;
    border: 2px solid #2E7D32 !important;
}
.bbs-legend-color.seat-selected {
    background: #8B1E12 !important;
    border: 2px solid #8B1E12 !important;
}
.bbs-legend-color.seat-booked {
    background: #5f6575 !important;
    border: 2px solid #5f6575 !important;
}

/* 5. Remove any unwanted focus glow rings globally */
.bbs-booking-container button:focus,
.bbs-booking-container a:focus,
.bbs-passenger-wrapper button:focus,
.bbs-passenger-wrapper a:focus,
button.bbs-back-btn:focus,
button.bbs-back-search:focus,
button.bbs-remove-seat:focus {
    outline: none !important;
    box-shadow: none !important;
}
