/* استایل‌های مخصوص صفحه معلومات تکت */
.ticket-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* استایل بخش قیمت */
.price-section {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

/* VIP Pricing Styles */
.vip-pricing-section {
    margin-bottom: 1.5rem;
}

.vip-price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vip-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vip-header {
    display: flex;
    align-items: center;
    padding: 20px 24px 16px;
    position: relative;
    z-index: 2;
}

.vip-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    backdrop-filter: blur(10px);
}

.vip-icon i {
    color: #ffd700;
    font-size: 24px;
    animation: pulse 2s infinite;
}

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

.vip-title h6 {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vip-title small {
    font-size: 13px;
    font-weight: 500;
}

.vip-price-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.vip-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-price-currency {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    margin-top: 4px;
}

.vip-price-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #2d3748;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.vip-price-badge i {
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

/* Responsive VIP Card */
@media (max-width: 768px) {
    .vip-price-display {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .vip-price-amount {
        font-size: 28px;
    }
    
    .vip-header {
        padding: 16px 20px 12px;
    }
    
    .vip-icon {
        width: 40px;
        height: 40px;
        margin-left: 12px;
    }
    
    .vip-icon i {
        font-size: 20px;
    }
}

/* بهبود استایل چوکی‌ها */
.bus-layout {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* VIP Seat Styling */
.seat-box.vip-seat {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    border: 2px solid #f59e0b;
    color: #92400e;
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: vip-glow 2s ease-in-out infinite alternate;
}

.seat-box.vip-seat:not(.reserved):hover {
    background: linear-gradient(135deg, #ffed4a, #fbbf24);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.seat-box.vip-seat.selected {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #92400e;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.vip-crown {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    color: #dc2626;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: crown-sparkle 1.5s infinite;
}

@keyframes vip-glow {
    0% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6); }
}

@keyframes crown-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.driver-box, .door-box {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-box i, .door-box i {
    color: #6c757d;
    font-size: 18px;
}

.seats-container {
    padding: 10px;
}

.seat-box {
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #0d6efd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seat-box:hover:not(.reserved) {
    background: #e7f1ff;
    transform: translateY(-2px);
}

.seat-box.selected {
    background: #0d6efd;
    color: #fff;
}

.seat-box.reserved {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

.seat-box-empty {
    height: 40px;
    background: transparent;
    border: none;
    cursor: default;
}

.aisle {
    height: 40px;
    background: repeating-linear-gradient(
        45deg,
        #f8f9fa,
        #f8f9fa 5px,
        #e9ecef 5px,
        #e9ecef 10px
    );
    border-radius: 5px;
}

.seat-guide {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-item .seat-box {
    width: 35px;
    height: 35px;
    margin: 0;
}

.guide-item span {
    font-size: 14px;
    color: #6c757d;
}

.selected-seats {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.selected-seats h6 {
    color: #495057;
    font-size: 14px;
}

@media (max-width: 576px) {
    .bus-layout {
        padding: 15px;
    }

    .seat-box {
        height: 35px;
        font-size: 12px;
    }

    .aisle {
        height: 35px;
    }

    .guide-item .seat-box {
        width: 30px;
        height: 30px;
    }

    .guide-item span {
        font-size: 12px;
    }
}

/* حذف استایل‌های جنسیت */
.seat-item.male::after,
.seat-item.female::after {
    display: none;
}

/* بهبود ریسپانسیو */
@media (max-width: 991.98px) {
    .ticket-info-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .ticket-info-card {
        padding: 20px;
    }

    .price-section {
        padding: 15px;
    }

    .bus-layout {
        padding: 20px 15px;
    }

    .seat-item {
        height: 40px;
        font-size: 0.9rem;
    }
}

/* استایل‌های جدید برای بخش امکانات */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.amenity-item i {
    font-size: 1.1rem;
}

.amenity-item span {
    font-size: 0.9rem;
    color: #495057;
}

/* استایل‌های جدید برای معلومات موتر */
.vehicle-details .detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    height: 100%;
}

.vehicle-details .detail-label {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.vehicle-details .detail-value {
    font-weight: 600;
    color: #333;
}

/* استایل‌های موبایل */
@media (max-width: 576px) {
    .ticket-info-card {
        padding: 15px;
        margin: 0 -10px 15px;
        border-radius: 12px;
    }

    .company-logo {
        width: 45px;
        height: 45px;
        margin-left: 10px;
    }

    .company-info h5 {
        font-size: 1rem;
    }

    .company-type {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .route-city {
        font-size: 0.9rem;
    }

    .route-time {
        font-size: 0.85rem;
    }

    .route-terminal {
        font-size: 0.75rem;
    }

    .route-duration {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* فیکس های RTL - فقط برای fa و ps */
html[lang="fa"] body,
html[lang="ps"] body {
    direction: rtl;
    text-align: right;
}

.route-line:before {
    left: auto;
    right: 0;
}

.route-line:after {
    right: auto;
    left: 0;
}

.bus-front i {
    margin-right: 0;
    margin-left: 6px;
}

.driver-seat i {
    margin-right: 0;
    margin-left: 3px;
}

html[lang="fa"] body .invalid-feedback,
html[lang="ps"] body .invalid-feedback {
    text-align: right;
}

html[lang="fa"] body .form-control.is-invalid,
html[lang="ps"] body .form-control.is-invalid {
    padding-right: 0.75rem !important;
    background-position: left calc(0.375em + 0.1875rem) center !important;
}

/* سایر استایل ها */
.ticket-detail-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: none;
}

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

/* قسمت اطلاعات مسیر */
.route-line {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, #0d6efd, #20c997);
    width: 100%;
    margin: 10px 0;
}

.route-line:before,
.route-line:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.route-line:before {
    background-color: #0d6efd;
    left: auto;
    right: 0;
}

.route-line:after {
    background-color: #20c997;
    right: auto;
    left: 0;
}

/* استایل چوکی‌های سرویس - نسخه بهبود یافته */
.bus-layout {
    background-color: #f8f9fa;
    background-image: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 18px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    padding: 25px 15px;
    position: relative;
    overflow: hidden;
}

/* استایل جدید برای راهرو بس */
.bus-aisle {
    position: absolute;
    top: 80px;
    bottom: 30px;
    left: 50%;
    width: 20px;
    transform: translateX(-50%);
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 10px;
    z-index: 0;
}

.bus-front {
    background: linear-gradient(135deg, #0c2e60, #195baa);
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px 12px 0 0;
    margin: -25px -15px 20px;
    position: relative;
    overflow: hidden;
}

.driver-seat {
    background: linear-gradient(145deg, #495057, #343a40);
    color: white;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seat-item {
    height: 45px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.seat-item:hover:not(.unavailable) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.seat-item.selected {
    animation: seat-pulse 0.3s ease;
}

@keyframes seat-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.bus-exit-door {
    margin: 20px -15px -25px;
    height: 25px;
    background: rgba(73, 80, 87, 0.1);
    position: relative;
    border-radius: 0 0 18px 18px;
}

.bus-exit-door::after {
    content: "خروجی";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
}

/* بهبود نمایش در موبایل */
@media (max-width: 576px) {
    .bus-layout {
        padding: 20px 10px;
        margin: 0 -5px;
    }

    .seat-item {
        height: 40px;
        font-size: 0.8rem;
    }

    .bus-front {
        margin: -20px -10px 15px;
        padding: 8px;
        font-size: 0.9rem;
    }

    .driver-seat {
        padding: 6px;
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .bus-exit-door {
        margin: 15px -10px -20px;
        height: 20px;
    }
}

/* اضافه کردن نشانگر جنسیت */
.seat-item.male::after,
.seat-item.female::after {
    content: attr(data-gender);
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seat-item.male::after {
    content: "آقا";
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.seat-item.female::after {
    content: "خانم";
    color: #d63384;
    border: 1px solid #d63384;
}

/* بهبود نمایش وضعیت چوکی */
.seat-item {
    position: relative;
    overflow: hidden;
}

.seat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.seat-item.unavailable {
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border-color: #ced4da;
    color: #adb5bd;
    cursor: not-allowed;
}

.seat-item.unavailable::after {
    content: "رزرو";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #dc3545;
}

/* سایر استایل ها */
.seat-sample {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(145deg, #e6f7ff, #d4e8ff);
    border: 1px solid #cce5ff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seat-sample::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
    opacity: 0.6;
    top: 0;
    left: 0;
}

.seat-sample.selected {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    border-color: #0a58ca;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2);
}

.seat-sample.selected::before {
    opacity: 0.2;
}

.seat-sample.unavailable {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-color: #dee2e6;
    opacity: 0.8;
    box-shadow: none;
}

.seat-legends {
    background-color: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    margin-top: 20px;
}

.seat-info-container {
    background-color: #f0f7ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.seat-info-container.has-selected {
    background-color: #e6f7ff;
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.1);
}

#selectedSeatNumber {
    color: #0d6efd;
    font-size: 1.2rem;
}

#buyButton {
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2);
}

#buyButton:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25);
}

#buyButton.btn-pulse {
    animation: btn-pulse 1s ease;
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.bus-floor {
    height: 10px;
    background-color: #dee2e6;
    border-radius: 5px;
    margin: 35px auto 25px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.bus-floor::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.seat-info-title {
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.seat-numbers-list {
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px dashed rgba(13, 110, 253, 0.3);
}

/* نشانگر چوکی VIP - ساده‌سازی شده */
.bus-seat[data-type="vip"] {
    background-color: #fff8e1;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.bus-seat[data-type="vip"].selected {
    background-color: #f39c12;
    color: white;
    border: 1px solid #e67e22;
}

/* حذف انیمیشن‌های اضافی برای سبک‌سازی */
.ripple {
    display: none;
}

/* استایل دیباگ - برای تست و رفع اشکال */
.debug-seat {
    position: relative;
}

.debug-seat::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ff0000;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    opacity: 0.8;
    pointer-events: none;
}

/* استایل شیشه‌های بس */
.bus-side-windows {
    position: absolute;
    top: 80px;
    bottom: 30px;
    width: 8px;
    background-color: rgba(173, 181, 189, 0.15);
    z-index: 1;
}

.bus-side-windows.left {
    left: 5px;
    border-radius: 4px 0 0 4px;
}

.bus-side-windows.right {
    right: 5px;
    border-radius: 0 4px 4px 0;
}

.bus-side-windows::before,
.bus-side-windows::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20%;
    background-color: rgba(173, 181, 189, 0.1);
}

.bus-side-windows::before {
    top: 10%;
}

.bus-side-windows::after {
    top: 40%;
}

/* استایل شیشه جلو */
.front-wind {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Form validation styles */
/* این قسمت فقط برای زبان‌های راست به چپ اعمال شود */
html[lang="fa"] body .form-control.is-invalid,
html[lang="ps"] body .form-control.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
    background-position: left calc(0.375em + 0.1875rem) center !important;
}

html[lang="fa"] body .invalid-feedback,
html[lang="ps"] body .invalid-feedback {
    font-size: 80%;
    color: #dc3545;
    display: none;
    text-align: right;
}

.was-validated .form-control:invalid~.invalid-feedback,
.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* استایل‌های جدید برای معلومات سفر */
.trip-details,
.vehicle-details {
    position: relative;
}

.detail-row {
    position: relative;
    padding-right: 10px;
}

.detail-row::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.2;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.detail-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2px;
}

/* استایل‌های امکانات */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.amenity-item i {
    font-size: 1.1rem;
}

.amenity-item span {
    color: #495057;
    font-size: 0.85rem;
}

/* بهبود استایل کارت‌ها */
.card {
    border: none;
    transition: all 0.3s ease;
}

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

.card-header {
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary), #195baa);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* استایل‌های موبایل */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-row {
        padding-right: 8px;
    }

    .detail-label {
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    .amenity-item {
        padding: 6px 10px;
    }

    .amenity-item i {
        font-size: 1rem;
    }

    .amenity-item span {
        font-size: 0.8rem;
    }
}

/* انیمیشن‌های جدید */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

.detail-row {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.detail-row:nth-child(1) {
    animation-delay: 0.1s;
}

.detail-row:nth-child(2) {
    animation-delay: 0.2s;
}

.detail-row:nth-child(3) {
    animation-delay: 0.3s;
}

.detail-row:nth-child(4) {
    animation-delay: 0.4s;
}

.amenity-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.amenity-item:nth-child(1) {
    animation-delay: 0.1s;
}

.amenity-item:nth-child(2) {
    animation-delay: 0.15s;
}

.amenity-item:nth-child(3) {
    animation-delay: 0.2s;
}

.amenity-item:nth-child(4) {
    animation-delay: 0.25s;
}

.amenity-item:nth-child(5) {
    animation-delay: 0.3s;
}

.amenity-item:nth-child(6) {
    animation-delay: 0.35s;
}

.amenity-item:nth-child(7) {
    animation-delay: 0.4s;
}

.amenity-item:nth-child(8) {
    animation-delay: 0.45s;
}

/* استایل‌های جدید برای بخش شرکت و مسیر */
.company-section {
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.company-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(145deg, transparent, rgba(13, 110, 253, 0.05));
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    position: relative;
    background: #fff;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-logo:hover img {
    transform: scale(1.1);
}

.company-info {
    flex: 1;
}

.company-info h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.company-type {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.company-type i {
    margin-left: 5px;
    font-size: 0.9rem;
}

/* استایل‌های جدید برای مسیر */
.route-info {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-point {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.route-city {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.route-time {
    font-size: 1rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.route-time i {
    font-size: 0.9rem;
}

.route-terminal {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.route-terminal i {
    font-size: 0.8rem;
    color: #adb5bd;
}

.route-line {
    flex: 2;
    height: 3px;
    background: linear-gradient(to right, #0d6efd, #20c997);
    position: relative;
    margin: 0 20px;
    border-radius: 3px;
}

.route-line::before,
.route-line::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 3px solid #0d6efd;
}

.route-line::before {
    left: 0;
}

.route-line::after {
    right: 0;
    border-color: #20c997;
}

.route-duration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e9ecef;
}

.route-duration i {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .company-section {
        padding: 15px;
        gap: 15px;
    }

    .company-logo {
        width: 60px;
        height: 60px;
    }

    .company-info h5 {
        font-size: 1.1rem;
    }

    .route-info {
        padding: 20px 15px;
        flex-direction: column;
        gap: 20px;
    }

    .route-line {
        width: 100%;
        margin: 20px 0;
    }

    .route-duration {
        position: relative;
        transform: none;
        left: auto;
        margin: 15px auto;
    }
}

/* Remove old amenities styles */
.amenities-grid {
    display: none;
}

.amenity-item {
    display: none;
}

.seat-item.reserved {
    background: linear-gradient(145deg, #dc3545, #e74c3c);
    color: white;
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.8;
}

.seat-item.reserved::after {
    content: "رزرو شده";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #fff;
}

.seat-item .seat-number {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Force LTR layout for the driver/door header row so Driver stays on the left */
.driver-door-row {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row !important; /* prevent RTL frameworks from reversing */
}

/* Neutralize Bootstrap offset side-effects inside this row */
.driver-door-row [class*="offset-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* helper to push the last box to the far right in LTR flow */
.driver-door-row .push-end {
    margin-left: auto !important;
}

/* Explicit left/right boxes to avoid RTL grid interference */
.driver-door-row .dd-left {
    order: 1;
}

.driver-door-row .dd-right {
    order: 2;
    margin-left: auto;
}
