@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;
}

.bbs-results-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.bbs-results-header h2 span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: normal;
    margin-left: 10px;
}

.bbs-results-count {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--text-gray);
}

.bbs-results-count .count-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 5px;
}

.bbs-back-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 30px;
}

.bbs-back-search:hover {
    background: #fef3e8;
    color: var(--primary-dark);
}

/* ============================================
   BUS CARD - RedBus Style
   ============================================ */
.bbs-bus-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 16px;
    padding: 20px 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.bbs-bus-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.bus-card-left {
    flex: 2;
    min-width: 200px;
}

.bus-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.bus-name i {
    color: var(--primary-color);
    margin-right: 8px;
}

.bus-type {
    display: inline-block;
    background: rgba(200, 80, 16, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.route-number {
    display: inline-block;
    font-size: 11px;
    color: var(--text-light);
}

/* Seat Availability Pill Badges */
.seat-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.seat-availability-badge.seat-available {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.seat-availability-badge.seat-filling {
    background: rgba(255, 152, 0, 0.1);
    color: #ef6c00;
    animation: pulseWarning 1.2s infinite;
}

.seat-availability-badge.seat-soldout {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.bus-card-center {
    flex: 2;
    min-width: 250px;
}

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

.departure, .arrival {
    text-align: center;
}

.departure .time, .arrival .time {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.departure .date, .arrival .date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.journey-line {
    flex: 1;
    text-align: center;
    position: relative;
}

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

.journey-line .line::before {
    content: "🚌";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    background: white;
    padding: 0 5px;
}

.journey-line .duration {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 8px;
}

.bus-card-right {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.fare-box {
    background: #fef9e6;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #ffe8b6;
}

.original-fare-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #f0e0c0;
}

.original-fare-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.original-fare {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.discount-label {
    font-size: 11px;
    color: #4caf50;
    font-weight: 600;
}

.discount-amount {
    font-size: 13px;
    color: #4caf50;
    font-weight: 700;
}

.final-fare-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.final-fare-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.final-fare {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.fare-per-seat {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.dynamic-pricing-note {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.taxes {
    font-size: 10px;
    color: #4caf50;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f0e0c0;
}

.view-seats-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 40px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.view-seats-btn:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(200, 80, 16, 0.25) !important;
}

/* ============================================
   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: 55px;
    min-height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #d8dee8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    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: 46px;
    min-height: 38px;
}

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

.bbs-driver-steering {
    width: 22px;
    height: 22px;
    display: block;
    box-sizing: border-box;
    fill: none;
    stroke: #94a3b8;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.bbs-sleeper-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;
}

.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;
}

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

.bbs-hybrid-deck {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 16px 14px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.bbs-hybrid-deck-lower {
    border-top: 4px solid #22c55e;
}

.bbs-hybrid-deck-upper {
    border-top: 4px solid #3b82f6;
}

.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.seat-sleeper.booked.booked-male {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: none;
}

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

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

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

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

.bbs-seat.seat-sleeper.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: #dc2626;
    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;
    }
}

/* 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-driver-steering {
    stroke: #8a8378 !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;
    }
}
        
        
        
        
        
