.bf-seats-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.bf-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #6c757d;
}
.check {
    background-color: #fff90c !important;
}
.bus-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    margin: 20px 0;
}

/* Контур автобуса */
.bus-outline {
    position: relative;
    background: white;
    border: 3px solid #6c757d;
    border-radius: 60px 60px 20px 20px;
    padding: 40px 20px 30px 20px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* Салон автобуса */
.bus-interior {
    position: relative;
    min-height: 225px;
    padding: 20px 10px;
}

/* Проход */
.bus-aisle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-left: 2px dashed #adb5bd;
    border-right: 2px dashed #adb5bd;
    z-index: 1;
}

/* Ряды сидений */
.bus-row {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    gap: 5px;
}

/* Группы сидений */
.seat-group-left {
    display: flex;
    gap: 5px;
    margin-right: 25px;
}

.seat-group-right {
    display: flex;
    gap: 5px;
    margin-left: 25px;
}

/* Сами места */
.bus-seat {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #6c757d;
    border-radius: 8px 8px 4px 4px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Имитация подголовника */
.bus-seat::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 5px;
    width: 30px;
    height: 8px;
    background: #6c757d;
    border-radius: 4px 4px 0 0;
    opacity: 0.5;
}

/* Свободные места */
.bus-seat.free {
    background: #28e412;
    border-color: #1e7e34;
    color: white;
}

.bus-seat.free::after {
    background: #1e7e34;
}
.bus-seat.disable-place {
    background-color: gray;
    border-color: gray;
    cursor: default;
}
.bus-seat.disable-place::after {
    background: #919090;
}
/* Занятые места */
.bus-seat.occupied {
    background: #dc3545;
    border-color: #a71d2a;
    color: white;
    cursor: not-allowed;
}

.bus-seat.occupied::after {
    background: #a71d2a;
}

/* Выбранные места */
.bus-seat.selected {
    background: #ffc107;
    border-color: #d39e00;
    color: #212529;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.bus-seat.selected::after {
    background: #d39e00;
}

/* Водительское место */
.bus-seat.driver {
    background: #17a2b8;
    border-color: #117a8b;
    color: white;
    cursor: default;
}

.bus-seat.driver::after {
    background: #117a8b;
}

/* Входная дверь */
.bus-entrance {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 45px;
    background: rgba(23, 162, 184, 0.1);
    border: 2px dashed #17a2b8;
    border-radius: 8px;
    color: #17a2b8;
    font-size: 20px;
}

/* Пустое пространство */
.bus-empty {
    width: 45px;
    height: 45px;
}

/* Номер ряда */
.bus-row-number {
    position: absolute;
    left: -20px;
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
    background: white;
    padding: 2px 5px;
    border-radius: 10px;
}

/* Легенда */
.bus-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

.legend-color.occupied {
    background: #dc3545;
}

.legend-color.free {
    background: #28e412;
}

.legend-color.selected {
    background: #ffc107;
}

.legend-color.driver {
    background: #17a2b8;
}

.legend-color.entrance {
    background: rgba(23, 162, 184, 0.1);
    border: 2px dashed #17a2b8;
}

/* Направление движения */
.bus-direction {
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.bus-direction i {
    margin: 0 5px;
}

/* Анимации */
.bus-seat.free:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 228, 18, 0.3);
}
.bus-seat.disable-place:hover {
    transform: none;
    box-shadow: none;
}

/* Подписи */
.bus-label {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bus-outline {
        padding: 30px 10px 20px 10px;
    }

    .bus-seat {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .bus-entrance {
        width: 45px;
        height: 35px;
        font-size: 16px;
    }

    .seat-group-left {
        margin-right: 30px;
    }

    .seat-group-right {
        margin-left: 30px;
    }

    .bus-headlight-left,
    .bus-headlight-right {
        width: 20px;
        height: 20px;
    }
}