.bus-details-container {
    padding-bottom: 50px;
    background-color: var(--bg-body);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-low);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.3s;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.back-btn:hover {
    color: var(--famous-primary);
}

.details-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--famous-box-shadow);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.details-card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(248, 250, 252, 0.5);
}

@media (min-width: 640px) {
    .details-card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.details-card-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-high);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.class-badge {
    color: var(--famous-primary);
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.details-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .details-card-body {
        padding: 2rem;
        flex-direction: row;
    }
}

.details-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    order: 2;
}

@media (min-width: 1024px) {
    .details-left-col {
        order: 1;
    }
}

.details-right-col {
    width: 100%;
    order: 1;
}

@media (min-width: 1024px) {
    .details-right-col {
        width: 45%;
        flex-shrink: 0;
        order: 2;
    }
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-high);
    margin-bottom: 0.25rem;
}

.info-section .route-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-low);
}

.info-section .route-value {
    color: var(--text-high);
}

.section-title-caps {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Timeline */
.route-timeline {
    position: relative;
    padding-left: 1rem;
    margin-left: 0.5rem;
    border-left: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 2px;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.timeline-dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

.timeline-dot-inner.primary {
    background-color: var(--famous-primary);
}

.timeline-content p:first-child {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.125rem;
}

.timeline-content p:last-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-high);
    margin: 0;
}

.timeline-duration {
    position: relative;
}

.duration-marker {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 6px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duration-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-medium);
    padding: 0.5rem 0;
    margin: 0;
}

/* Amenities */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.amenity-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-medium);
}

.amenity-tag i {
    color: var(--famous-primary);
}

/* Pricing Section */
.pricing-action-box {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    box-shadow: var(--famous-box-shadow);
}

@media (min-width: 640px) {
    .pricing-action-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.price-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-low);
    margin-bottom: 0.25rem;
}

.price-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--famous-primary);
    line-height: 1;
}

.price-currency {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-low);
    text-transform: uppercase;
}

.available-seats-badge {
    font-size: 0.875rem;
    color: var(--famous-warning);
    font-weight: 700;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.seat-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: var(--famous-warning);
}

.select-seat-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background: var(--bg-gradient);
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(18, 64, 151, 0.2);
    font-size: 1.125rem;
    cursor: pointer;
}

.select-seat-btn:hover {
    transform: scale(1.01);
}

.select-seat-btn:active {
    transform: scale(0.95);
}

.sold-out-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background-color: #94a3b8;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    font-size: 1.125rem;
    cursor: not-allowed;
}

@media (min-width: 640px) {
    .select-seat-btn, .sold-out-btn {
        width: auto;
    }
}

/* Image Gallery */
.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f1f5f9;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
    cursor: pointer;
    z-index: 10;
}

.main-image-container:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background-color: #ffffff;
}

.gallery-nav-btn.prev {
    left: 0.75rem;
}

.gallery-nav-btn.next {
    right: 0.75rem;
}

.thumbnails-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.thumb-btn {
    position: relative;
    width: 6rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    padding: 0;
    background: none;
    cursor: pointer;
}

.thumb-btn.active {
    border-color: var(--famous-primary);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f1f5f9;
    color: #94a3b8;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-image-placeholder p {
    font-weight: 700;
}
